Adding a utility method for configuring the puppet.conf file

There are many use cases for this, testing non-standard puppet
installations, testing switching environments etc.
This looks like an unrelated change that came for a ride along.