I use this pattern:

[master]

    templatedir = /etc/puppet/environments/$environment/
    modulepath  = /etc/puppet/environments/$environment/modules
    manifest    = /etc/puppet/environments/$environment/manifests/site.pp
    manifestdir = /etc/puppet/environments/$environment/manifests




On Tue, Mar 22, 2011 at 3:52 PM, elliott <[email protected]> wrote:
> Thanks Cody.
>
> The client's environment does need to be set, either through the
> puppet.conf or on the command line, but the environments also need to
> be defined on the master, as far as I know.
>
> On Mar 22, 12:46 pm, Cody Robertson <[email protected]> wrote:
>> 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_Environ...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" 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-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to