O'Reilly logo

Puppet Essentials by Felix Frank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Maintaining environments

Puppet doesn't organize only manifests, files, and plugins in modules. There is a higher-level unit called environment that groups and contains modules. An environment mainly consists of:

  • One or more site manifest files
  • A modules directory

When the master compiles the manifest for a node, it uses exactly one environment for this task. As described in Chapter 2, The Master and Its Agents, it always starts in site.pp, which is the environment's site manifest. This can be the location for your node blocks. It is a common practice to keep the node blocks out of site.pp, though, and keep them in a nodes.pp file instead. Before we take a look at how this works, let's see an example environment directory:

/etc/puppet/environments ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required