I am trying to set up multiple environments so that each person creating recipes in puppet can have their own environment and only load modules that they would like. What I would like to know is. Is this possible? I have tried setting the modulepath and the manifest parameters for each environment. When using an environment the modules are used but the site.pp set by the manifest parameter does not seem to be picked up. It seems to be using the default site.pp. Any help would be much appreciated. My System is RHEL 4 puppet 0.24.4 puppetmaster config puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet rundir=/var/run ssldir=/var/lib/puppet/ssl templatedir=/etc/puppet/templates pluginsync = true pluginsource = puppet://$server/plugins plugindest = $vardir/lib/puppet factpath = $vardir/lib/facter environment = production [puppetmasterd] environments = production,awalker storeconfigs = true smtpserver = smarthost dbadapter = mysql dbserver = lhr1-ahbat-01 dbname = puppet dbuser = puppetuser dbpassword = puppetdb reportdir = /var/lib/puppet/reports reports = log,store,tagmail syslogfacility = user tagmap = /etc/puppet/tagmail.conf [puppetd] server=lhr1-ahbat-02 pluginsync=true report=true [production] modulepath=$confdir/modules-production [awalker] modulepath=$confdir/awalker/modules manifest=$confdir/awalker/manifests/site.pp ---EOF Here is a snip of the puppetmaster log Thu May 22 14:29:35 +0100 2008 /Settings[/etc/puppet/puppet.conf]/ Settings[puppetmasterd]/File[/etc/puppet/manifests/site.pp] (debug): Autorequiring File[/etc/puppet/manifests] Thu May 22 14:29:35 +0100 2008 Puppet (debug): Finishing transaction 91459031120 with 0 changes Thu May 22 14:29:35 +0100 2008 Puppet (debug): importing ''/etc/puppet/ manifests/common.pp'' Thu May 22 14:29:35 +0100 2008 Puppet (debug): importing ''/etc/puppet/ manifests/modules.pp'' Thu May 22 14:29:35 +0100 2008 Puppet (debug): importing ''/etc/puppet/ awalker/modules/ntp/manifests/init.pp'' Thu May 22 14:29:35 +0100 2008 Puppet (debug): importing ''/etc/puppet/ awalker/modules/common/manifests/init.pp'' --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-May-24 17:18 UTC
[Puppet Users] Re: A question about multiple environments
On May 23, 2008, at 4:05 AM, Aaron wrote:> I am trying to set up multiple environments so that each person > creating recipes in puppet can have their own environment and only > load modules that they would like. What I would like to know is. Is > this possible?Well, it should be, although I haven''t thought much how that would work.> > I have tried setting the modulepath and the manifest parameters for > each environment. When using an environment the modules are used but > the site.pp set by the manifest parameter does not seem to be picked > up. It seems to be using the default site.pp.There are some filed bugs related to various settings, including the manifest, not correctly being considered per-environment. This should be fixed in the 0.24.5 release, which should be pretty soon. -- To my embarrassment I was born in bed with a lady. --Wilson Mizner --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 24, 7:18 pm, Luke Kanies <l...@madstop.com> wrote:> On May 23, 2008, at 4:05 AM, Aaron wrote: > > > I am trying to set up multiple environments so that each person > > creating recipes in puppet can have their own environment and only > > load modules that they would like. What I would like to know is. Is > > this possible? > > Well, it should be, although I haven''t thought much how that would work. > > > > > I have tried setting the modulepath and the manifest parameters for > > each environment. When using an environment the modules are used but > > the site.pp set by the manifest parameter does not seem to be picked > > up. It seems to be using the default site.pp. > > There are some filed bugs related to various settings, including the > manifest, not correctly being considered per-environment. > > This should be fixed in the 0.24.5 release, which should be pretty soon.Brilliant thanks for that. I shall search the site more diligently next time. Aaron> > -- > To my embarrassment I was born in bed with a lady. > --Wilson Mizner > --------------------------------------------------------------------- > Luke Kanies |http://reductivelabs.com|http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---