Sha256: 2061eeb9e52807313615c2355356608f48beefe554ded25349ccb801beaaf5cc

Contents?: true

Size: 1.77 KB

Versions: 32

Compression:

Stored size: 1.77 KB

Contents

Puppet master configuration
===========================

In order to use environments, your Puppet masters will need to be
configured to load manifests and modules relative to the requested environment.

This is the default behavior in Puppet 4+

This behavior is controled by the following settings
(listed with their default values):

```
codedir = /etc/puppetlabs/code
environmentpath = $codedir/environments
basemodulepath = $codedir/modules:/opt/puppetlabs/puppet/share/modules
```

The environment requested by the agent or assigned to it by an ENC is looked
for at `$environmentpath/$environment`.

That environment may have an environment.conf file in its base directory that
specifies its own modulepath. If not, the default computed modulepath for that
environment is `$environmentpath/$environment/modules:$basemodulepath`.

These configuration variables are documented at
[Puppet Configuration Reference](https://puppet.com/docs/puppet/latest/configuration.html)
and their interaction in forming the modulepath is documented at
[Directories and the Modulepath](https://puppet.com/docs/puppet/latest/dirs_modulepath.html).
More information can be found about environments in general at
[Creating Environmnets](https://puppet.com/docs/puppet/latest/environments_creating.html).

The evolution to using environments in this way was a gradual one from community
conventions to supported feature and there were several intermediate stages that
had different configuration requirements within the puppet.conf. Some Puppet
documentation from the 3.x and 4.x series may no longer be applicable to the
above which solidified in Puppet 4.x.

If you need to upgrade away from any intermediate setup see
[Environments in Puppet 3.8](https://puppet.com/docs/puppet/3.8/environments.html)
for examples that may help.

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
r10k-5.0.0 doc/dynamic-environments/master-configuration.mkd
r10k-4.1.0 doc/dynamic-environments/master-configuration.mkd
r10k-4.0.2 doc/dynamic-environments/master-configuration.mkd
r10k-4.0.1 doc/dynamic-environments/master-configuration.mkd
r10k-4.0.0 doc/dynamic-environments/master-configuration.mkd
r10k-4.0.0.pre doc/dynamic-environments/master-configuration.mkd
r10k-3.16.0 doc/dynamic-environments/master-configuration.mkd
r10k-3.15.4 doc/dynamic-environments/master-configuration.mkd
r10k-3.15.3 doc/dynamic-environments/master-configuration.mkd
r10k-3.15.2 doc/dynamic-environments/master-configuration.mkd
r10k-3.15.1 doc/dynamic-environments/master-configuration.mkd
r10k-3.15.0 doc/dynamic-environments/master-configuration.mkd
akerl-r10k-3.14.2.1 doc/dynamic-environments/master-configuration.mkd
r10k-3.14.2 doc/dynamic-environments/master-configuration.mkd
r10k-3.14.1 doc/dynamic-environments/master-configuration.mkd
r10k-3.14.0 doc/dynamic-environments/master-configuration.mkd
r10k-3.13.0 doc/dynamic-environments/master-configuration.mkd
r10k-3.12.1 doc/dynamic-environments/master-configuration.mkd
r10k-3.12.0 doc/dynamic-environments/master-configuration.mkd
r10k-3.11.0 doc/dynamic-environments/master-configuration.mkd