Improve automation in puppetmaster provisioning script