Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Puppetry with Friends > Environments

Environments

Puppet allows you to create environments with different manifest files for modules, nodes, and templates. In order to start using this feature, you’ll need to create a new set of modules, manifests, and templates directories in a subdirectory of /etc/puppet on the Puppet Master and then specify their location in a new stanza in your puppet.conf as follows:

[development]

modulepath = $confdir/environments/development/modules
manifest = $confdir/environments/development/manifests/site.pp
templatedir = $confdir/environments/development/templates

Once you’ve put some usable code in these directories, you can specify the new development for use on an agent node by either passing --environment development to puppetd on invocation, or by placing a new parameter in the agent’s puppet.conf [agent] stanza:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint