On 03/22/2011 03:41 PM, elliott wrote:
Hi guys,

I've had separate development/testing environments partially working
for a while, in that modules get pulled from the correct per-
environment path.  However, something that has never seemed to work
was a per-environment manifest.  I have more need for this now so I'd
like to track it down.

Here is the relevant part of my puppet.conf file:

[puppetmasterd]
modulepath = /etc/puppet/modules:/usr/share/puppet:/var/lib/modules
environments=production,testing,development

[production]
manifest = /etc/puppet/manifests/site.pp
modulepath = /etc/puppet/modules:/usr/share/puppet:/var/lib/modules

[testing]
manifest = /etc/puppet/testing/manifests/site.pp
modulepath = /etc/puppet/testing/modules:/etc/puppet/modules:/usr/
share/puppet:/var/lib/modules

[development]
manifest = /etc/puppet/development/manifests/site.pp
modulepath = /etc/puppet/development/modules:/etc/puppet/modules:/usr/
share/puppet:/var/lib/modules


I've added some notify's to each of the site.pp files mentioned, and
sure enough it is always ending up in production.

Any clues?  Anyone else have this working?

Thanks in advance!


I don't personally use these however by glancing at the doc it appears you specify the environment on the agent and not the master?

http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to