After you've installed Puppet Enterprise (PE), optimize it for your environment by configuring and tuning settings as needed. For example, you might want to add your own certificate to the whitelist, increase the max-threads setting for
https requests, or configure the number of JRuby instances.
There are three main methods for configuring PE: using the console, adding a key to Hiera, or editing
pe.conf. For the most part, you can choose to use whatever method you want, but sometimes one might be better than another depending on the situation. In general, try to stay as consistent as possible.
pe.confonly — not the console — to specify configuration parameters. Using
pe.confor Hiera ensures that configuration is applied to both your master and replica.
Configure settings using the console
Using the console to change parameters is the most user-friendly way of configuring Puppet Enterprise (PE) because you can use a graphical interface in order to make changes.
Changes in the console will override your Hiera data and data in
pe.conf. It is usually best to use the console when you want to:
- Change parameters in profile classes starting with
- Add any parameters in PE-managed configuration files.
- Set parameters that configure at runtime.
To configure settings in the console, do the following:
- In the console, click Classification, and select the node group that contains the class you want to work with.
- On the Configuration tab, find the class you want to work with, select the Parameter name from the list and edit its value. If you wanted to change the number used to identify the port your console is on from the default 443 to 500, change the parameter value in the following:
Class Parameter Value
- Click Add parameter and commit changes.
- On the nodes hosting the master and console, run Puppet.
Configure settings with Hiera
Hiera is a hierarchy-based method of configuration management that relies on a “defaults, with overrides” system. When you add a parameter or setting to your Hiera data, Hiera searches through the data in the order it was written to find the value you want to change. Once found, it overrides the default value with the new parameter or setting.
pe.conf, but not the console. It's best to use Hiera when you want to:
- Change parameters in non-profile classes.
- Set parameters that are static and version controlled.
- Configure for high availability.
To configure a setting using Hiera, do the following:
- Open your default data file. The default location for Hiera data files is:
hiera.yamlconfiguration to change location for data files (the
datadirsetting) or the path of the common data file (in the
hierarchysection), look for the default
.yamlfile in the customized location.
- Add your new parameter to the file in editor. If you wanted to increase the number of seconds before a node is considered unresponsive from the default 3600 to 4000, add the following to your
.yamldefault file and insert your new parameter at the end.
- Compile and view your overrides.
Configure settings in
Puppet Enterprise (PE) configuration data includes any data set in
pe.conf is the file used for most configuration activities during installation.
pe.conf. Configure settings using
pe.confwhen you want to:
- Access settings during installation.
- Configure for high availability.
To configure settings using
- Open the
pe.conffile on your master:
- Add the parameter and new value you want to set. For example, to change the proxy in your repo, add the following and change the parameter to your new proxy location.
puppet agent -tNote: If PE services are stopped, run
puppet infrastructure configureinstead of
puppet agent -t.