theforeman/smart-proxy — pull request #42 by domcleal (2012-11-21 20:01:04+00:00)
Title: fixes #1915 - load environments from Puppet 3

Two changes to support loading environment settings from Puppet 3:

* explicitly specify the run_mode as being 'master' to ensure the config is
parsed in a puppetmaster context
* call private method to fully clear the state in Puppet::Settings allowing for
a full reparsing of the config to pick up changes in environments (Puppet bug
#17783)

This supersedes GH-40 as it explicitly loads the master run_mode and will allow for environments to be reloaded without restarting the proxy. I've filed #17783 with Puppet to give us back a better public interface for doing this, it should included in the Puppet 3.1 refactor of the settings stuff.