Issue #3171 has been reported by Enrica Patacconi.
----------------------------------------
Bug #3171: Multiple environments main manifest not working
http://projects.reductivelabs.com/issues/3171
Author: Enrica Patacconi
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Affected version: 0.25.4
Keywords:
Branch:
I run puppetmasterd and puppetd on a SLES 10SP2.
I have three different environments: bootstrap, staging, production
this is part of the puppet.conf on the master:
[puppetmasterd]
modulepath = /etc/puppet/modules
environments = bootstrap,staging,production
environment = bootstrap
[bootstrap]
modulepath = /etc/puppet/bootstrap/modules:/etc/puppet/modules
manifest = /etc/puppet/bootstrap/site.pp
[staging]
modulepath = /etc/puppet/staging/modules:/etc/puppet/modules
manifest = /etc/puppet/staging/site.pp
[production]
modulepath = /etc/puppet/production/modules:/etc/puppet/modules
manifest = /etc/puppet/production/site.pp
this is [puppetd] section in puppet.conf on the client
[puppetd]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
environment = bootstrap
in /etc/puppet/bootstrap/site.pp I have the following:
import "/etc/puppet/nodes/default"
in /etc/puppet/site.pp (the main site.pp), /etc/puppet/staging/site.pp and
/etc/puppet/production/site.pp I have the following
import "/etc/puppet/nodes/*"
The problem is that if I run puppet from a node called NODE1, if a
/etc/puppet/nodes/node1 file exists, although specifying bootstrap as
environment, it will always refer to /etc/puppet/nodes/NODE1 bypassing default
(as specified in the bootstrap's site.pp)
I even tried to force it at command line with --environment=bootstrap but
nothing.
I also found out that puppet seems to ignore the environment's main manifest
(in my case /etc/puppet/bootstrap/site.pp) and always refer to the main one
(/etc/puppet/site.pp).
Does anybody else have the same issue?
Thanks.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.