I''m testing the new environments feature in 0.24.1. http://reductivelabs.com/trac/puppet/wiki/UsingMultipleEnvironments But I am having a problem getting it to recognise the modulepath setting within the environment. I''m wondering if this is a bug or if I am doing something wrong For this example, the environments are called "prod" and "test". On the puppetmaster puppet.conf has these entries related to environments: [main] environment = prod environments=prod,test modulepath = /base/default/modules [prod] modulepath = /base/prod/modules manifest = /base/prod/site.pp [test] modulepath = /base/test/modules manifest = /base/test/site.pp My modules are in /base/test/modules and /base/prod/modules for each environment. If I run puppetd on the client and specify the environment as "prod" or "test", it will find the correct manifest file but it does not pick up any of the modules. If set modulepath in the "main"section like this, so that the module path is set to one of the environment''s modulepaths: [main] environment = prod environments=prod,test modulepath = /base/prod/modules [prod] modulepath = /base/prod/modules manifest = /base/prod/site.pp [test] modulepath = /base/test/modules manifest = /base/test/site.pp then puppetd on the client finds the modules in that directory. So it''s as if it is ignoring the modulepath setting in the environment and going to "main". So at the moment environments are not working for me as I cannot make it change the modulepath based upon the environment setting. Colin. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jan 15, 2008, at 9:54 PM, Colin Spargo wrote:> So at the moment environments are not working for me as I cannot > make it change the modulepath based upon the environment setting.I just discovered this myself, and would greatly appreciate it if you would file this as a bug, since you have done such good description of the bug. Please make sure to wrap your code in {{{}}} so it shows up on the trac site correctly. Thanks. -- Calamities are of two kinds: misfortunes to ourselves, and good fortune to others. -- Ambrose Bierce --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com