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.