Ask Your Question
0

changes in environment manifests ignored?

asked 2013-12-28 13:27:39 -0500

Thynan gravatar image

Hi!

I have a problem using environments with puppet.

I set up my environments as described in the Pro Puppet book. My puppet.conf on the master looks like this:

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
certname=puppet.example.tld

[agent]
server=puppet.example.tld

[production]
modulepath = $confdir/modules
manifest = $confdir/manifests/site.pp

[testing]
modulepath = $confdir ...
(more)
edit retag flag offensive close merge delete

Comments

You should treat production as an environment, ie put the code for production under the same hierarchy as testing : manifest = $confdir/manifests/site.pp (belongs to environments/production) manifest = $confdir ...(more)

Julien R. gravatar imageJulien R. ( 2014-01-02 14:08:39 -0500 )edit

Hi Julien! I left production in a different hierarchy as testing and development, because that's how it is described in the new "Pro Puppet" book. But you are right ...(more)

Thynan gravatar imageThynan ( 2014-01-13 10:59:03 -0500 )edit

Regarding my problem with the environments: I did a re-setup of my puppetmaster from scratch, because i moved it into a VM - and now the problem is gone. So I ...(more)

Thynan gravatar imageThynan ( 2014-01-13 11:01:08 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2015-04-03 18:01:35 -0500

updated 2015-04-04 09:14:34 -0500

Refactor:

The …path-variables work like the ${PATH}-variable in a shell.

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter

[master]
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

environmentpath=$confdir/environments
modulepath=$confdir/environments/$environment/modules:$confdir/module

[agent]
server=puppet.example.tld
certname=my.host.local.domain
environment=testing
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-28 13:27:39 -0500

Seen: 226 times

Last updated: Apr 04 '15