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)
Related issues
Bug #1915: Proxy with puppet3 causes global load errors
fixes #1915 - load environments from Puppet 3
Two changes to support loading environment settings from Puppet 3:
parsed in a puppetmaster context
a full reparsing of the config to pick up changes in environments (Puppet bug
#17783)