Environments
When every node requests an object from the Puppet master, they inform the Puppet master of their environment. Depending on how the master is configured, the environment can change the set of modules, the contents of Hiera, or the site manifest (site.pp
). The environment is set on the agent in their puppet.conf
file or on the command line using the puppet agent –environment
command.
In addition, environment may also be set from the ENC node terminus. In Puppet 4, setting the environment from the ENC overrides the setting in puppet.conf
. If no environment is set, then production, which is the default environment, is applied.
In previous versions of Puppet, environments could be configured using section names in puppet.conf
([production]
for example). In version 4 the only valid sections in puppet.conf
are: main
, master
, agent
, and user
. Directory environments are now the only supported mechanism to configure environments. To configure directory environments, specify the...