Puppet's configuration files
Puppet settings can be
configured in the main config file, called puppet.conf. There are several additional configuration files,
for new settings and ones that need to be in separate files with complex data structures.
-
puppet.conf: The main config file
The
puppet.conffile is Puppet’s main config file. It configures all of the Puppet commands and services, including Puppet agent, the primary Puppet server, Puppet apply, andpuppetserver ca. Nearly all of the settings listed in the configuration reference can be set inpuppet.conf. -
environment.conf: Per-environment settings
Environments are isolated groups of agent nodes. Any environment can contain an
environment.conffile. This file can override several settings whenever the primary server is serving nodes assigned to that environment. -
fileserver.conf: Custom fileserver mount points
The
fileserver.conffile configures custom static mount points for Puppet’s file server. If custom mount points are present,fileresources can access them with theirsourceattributes. -
puppetdb.conf: PuppetDB server locations
The
puppetdb.conffile configures how Puppet connects to one or more servers. It is only used if you are using PuppetDB and have connected your primary server to it. -
autosign.conf: Basic certificate autosigning
The
autosign.conffile can allow certain certificate requests to be automatically signed. It is only valid on the CA primary Puppet server; a primary server not serving as a CA does not useautosign.conf. -
csr_attributes.yaml: Certificate extensions
The
csr_attributes.yamlfile defines custom data for new certificate signing requests (CSRs). -
custom_trusted_oid_mapping.yaml: Short names for cert extension OIDs
The
custom_trusted_oid_mapping.yamlfile lets you set your own short names for certificate extension object identifiers (OIDs), which can make the$trustedvariable more useful. -
device.conf: Network hardware access
The
puppet-devicesubcommand retrieves catalogs from the primary Puppet server and applies them to remote devices. Devices to be managed by thepuppet-devicesubcommand are configured indevice.conf. -
routes.yaml: Advanced plugin routing
The
routes.yamlfile overrides configuration settings involving indirector termini, and allows termini to be set in greater detail thanpuppet.confallows.