On 11/07/2012 09:06, llow...@oreillyauto.com wrote:
If I have a module in /etc/puppet/modules/module_a

And I also have /etc/puppet/environments/<env>modules/module_a

and the one in the environments is different (say, it's a dev or test env that I am using to test new module code or something like that)

Will puppet use the test one if the environment setting matches, then fall back on the one from /etc/puppet/modules for other environments?

"Fall back" under what circumstances? if the module isn't found in the environment folder?

If you want Puppet to search your environment specific folder first, and then use a generic module folder if the module isn't available then you can do that by adding the following module path in your puppet.conf:

modulepath = /etc/puppet/environments/${environment}-modules/:/etc/puppet/modules

Although it's a not a layout I've seen anyone use, people generally maintain a full set of modules in a particular environment module directory.

Is that what you meant?
Craig

--
Craig Dunn
Professional Services
Puppet Labs Inc.
http://www.puppetlabs.com

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