Issue #1615 has been updated by Hector Rivas.
I think that I had the same issue. I want to use multiple environments, but I had a problem, puppet was always looking for the default location /etc/puppet/conf/manifests/site.pp instead of /etc/puppet/conf/data/<env>/manifests/site.pp. My configuration file looked like this: [test] manifestdir = /etc/puppet/data/test/manifests [preproduction] manifestdir = /etc/puppet/data/preproduction/manifests [development] manifestdir = /etc/puppet/data/development/manifests [production] manifestdir = /etc/puppet/data/production/manifests [puppetmasterd] environments = test,development,preproduction,production manifest = $manifestdir/site.pp Well, the problem was the 'manifest' entry in puppetmasterd. Puppet will evaluate it globally before evaluate the environments, setting manifest=/etc/puppet/conf/manifests/site.pp for all the environments. Solution: You can think that simply comment the line "manifest = $manifestdir/site.pp", woudl work since it is the default, but not. Neither writing "manifest = $manifestdir/site.pp" in each environmnet stanza works. You must set the full qualified path to the site.pp: manifest = /etc/puppet/conf/data/<env>/manifests/site.pp Indeed, I think that you can not use vars in the environment stanzas, but I have to confirm it. You can test the values using these commands in the puppetmaster host: $ puppetd --environment development --configprint manifest --config /etc/puppet/puppet.conf /etc/puppet/conf/manifests/site.pp $ puppetd --environment development --configprint manifest --config /etc/puppet/puppet.conf /etc/puppet/conf/manifests/site.pp And after set the manifest in each environment stanza: $ puppetd --environment development --configprint manifest --config /etc/puppet/puppet.conf /etc/puppet/data/development/site.pp I read somewhere that manifestdir wil be obsolete in future versions. ---------------------------------------- Bug #1615: manifestdir with environments not honored http://projects.puppetlabs.com/issues/1615 Author: Mike McGrath Status: Needs more information Priority: Normal Assigned to: Category: plumbing Target version: Affected version: 0.24.5 Keywords: Branch: I had a [staging] environment with manifestdir= in it and manifestdir was not being honored, modulepath was working fine. It ended up always using the default manifestdir. Changing manifestdir to manifest=/path/to/staging/site.pp it worked fine. -- 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://projects.puppetlabs.com/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.
