Re: [Puppet Users] Different paths based on environment

Nigel Kersten
Wed, 12 Oct 2011 21:38:36 -0000

On Wed, Oct 12, 2011 at 2:20 PM, Gonzalo Servat <gservat@gmail.com> wrote:

> On Thu, Oct 13, 2011 at 2:25 AM, Nigel Kersten
<nigel@puppetlabs.com>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 puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



--
Nigel Kersten
Product Manager, Puppet Labs