We are using a shared Puppet Server to manage both QA and DEV environments . The default configurations Puppet Server uses is Production environment
# puppet master --configprint all | grep production
environment = production
manifest = /data/puppetlabs/code/environments/production/manifests
modulepath = /data/puppetlabs/code/environments/production/modules:/data/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules
I want to enable two more environments DEV and QA. For this I will copy the above directories and rename to qa
and development
environment respectively on Puppet Server. What configuration items to enable in puppet.conf
to enable the new environments in Puppet Server. If I create multiple entries as in example above will it work . Please suggest .
The classical way to configure the environment is this:
Then you can place modules and manifests for every enviroment into these folders.
But this method is considered depricated and people are using directory based environemnts. Set
environmentpath
to/etc/puppet/environments
and create environment folders withmodules
andmanifests
there.For example:
The, you can use r10k to automagickally download these environments fron Git branches.