Go to main content

Using Puppet to Perform Configuration Management in Oracle® Solaris 11.4

Exit Print View

Updated: October 2019
 
 

Writing a Puppet Site Manifest

After installing and configuring Puppet, you can write Puppet manifests to control the nodes that are running the Puppet agent. Puppet manifests are written in a Puppet-specific language that is similar to Ruby, where each manifest uses a .pp file extension.

The Puppet site manifest (site.pp) is the main file that Puppet uses to define the pre-environment configuration. A site manifest defines configuration that you want applied to every node, which is ideal for managing system-wide configurations, such as DNS servers, LDAP configuration, and other site-wide settings that are common to all of the nodes.

A site manifest can also include node-specific blocks of code that apply to certain nodes. This capability enables you to assign specific configurations to specific nodes within a site manifest. See Writing Puppet Manifests That Specify Node-Specific Code.


Note -  The site.pp manifest does not exist on the Puppet master by default. You must initially create this file, and it must be stored in the /etc/puppetlabs/code/environments/production/manifests directory on the master.