Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Puppet

You're reading from   Mastering Puppet Mastering Puppet for network programming enables developers to pull the strings of Puppet and configure enterprise-level environments for optimum performance

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher
ISBN-13 9781783982189
Length 280 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas Uphill Thomas Uphill
Author Profile Icon Thomas Uphill
Thomas Uphill
Arrow right icon
View More author details
Toc

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 with puppet agent --environment.

In addition, environment may also be set from both the ENC and the LDAP node terminus. In Puppet version 3, 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.

On the master, if a configuration block's name matches the environment's name, then the settings in that block will take effect for the nodes that use that environment.

Tip

Environment names cannot be the same as that of the main config blocks of the puppet.conf file (main, master, agent, and so on).

The configuration block can contain...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime