On Wed, Oct 12, 2011 at 2:20 PM, Gonzalo Servat <[email protected]> wrote:

> On Thu, Oct 13, 2011 at 2:25 AM, Nigel Kersten <[email protected]>wrote:
>
>>
>> Are you saying you're sourcing files from outside the current environment
>> for the client?
>>
>> if you put your files into modules that differ per environment, then
>> something like:
>>
>> puppet:///modules/mymodule/myfile
>>
>> will resolve to $modulepath/mymodule/files/myfile separately for each
>> environment automatically.
>>
>
> Ah, so then I would need to specify a different modulepath per environment,
> right?
>

Yes, although note that modulepaths can have multiple components, and
individual components can be shared across environments

e.g.

[environment1]
modulepath = /path/to/common_modules:/path/to/environment1_modules

[environment2]
modulepath = /path/to/common_modules:/path/to/environment2_modules






> - Gonzalo
>
> --
> 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.
>



-- 
Nigel Kersten
Product Manager, Puppet Labs

-- 
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