Use the first script from https://confluence.puppetlabs.com/display/ETR/One+server+node+with+a+PuppetDB+and+an+extra+PuppetDB+on+a+separate+VM