I am trying out having multiple environments so that I can push a test config to a single server in production. The idea being that I could push out a config change to one server and see if the change works in production. If it does then I can merge the change into the production environment and push the change out to all the clients. So to test this I made a change to a config file in testing environment and run the following on the client. puppetd --test --server lhr1-ahbat-02 --environment testing any changes I make are not propagated. Any help would be much appreciated. Specially if what I am trying to do with environments is plain stupid. I am using 0.24.4 My puppet master looks like [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,testing storeconfigs=true smtpserver = smarthost dbadapter = mysql dbserver = lhr1-ahbat-01 ldapnodes = true ldapserver = lhr1-ahaaa-02 ldapbase = ou=Hosts,dc=active,dc=com dbname = puppet dbuser = puppetuser dbpassword = ******* reports = log,store,tagmail syslogfacility = user tagmap = /etc/puppet/tagmail.conf [puppetd] server=lhr1-ahbat-01 pluginsync=true report=true [testing] modulepath=$confdir/modules-testing [production] modulepath=$confdir/modules-production And on my client node I have a config file [main] environment = production environments = production,testing pluginsync = true pluginsource = puppet://$server/plugins plugindest = $vardir/lib/puppet factpath = $vardir/lib/facter The puppetmaster in debug logs the following info: Caching node webmail debug: Creating default schedules debug: /Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/ File[/etc/puppet/manifests/site.pp]: Autorequiring File[/etc/puppet/ manifests] debug: Finishing transaction 91459464120 with 0 changes debug: importing ''/etc/puppet/manifests/common.pp'' debug: importing ''/etc/puppet/manifests/modules.pp'' debug: importing ''/etc/puppet/modules-testing/ntp/manifests/init.pp'' debug: importing ''/etc/puppet/modules-testing/common/manifests/ init.pp'' debug: importing ''/etc/puppet/modules-testing/common/manifests/defines/ line.pp'' debug: importing ''/etc/puppet/modules-testing/common/manifests/defines/ remotefile.pp'' debug: importing ''/etc/puppet/modules-testing/bp/manifests/init.pp'' debug: importing ''/etc/puppet/modules-testing/ssh/manifests/init.pp'' debug: importing ''/etc/puppet/modules-testing/apache/manifests/ init.pp'' debug: importing ''/etc/puppet/modules-testing/snmp/manifests/init.pp'' debug: Adding code to main on line 7 in file /etc/puppet/manifests/ modules.pp debug: Adding code to main on line 11 in file /etc/puppet/manifests/ site.pp info: Stored catalog for webmail in 0.06 seconds notice: Compiled configuration for webmail. in 0.28 seconds --~--~---------~--~----~------------~-------~--~----~ 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-Apr-02 15:33 UTC
[Puppet Users] Re: Problem implementing multiple Environments
On Apr 2, 2008, at 10:24 AM, Aaron wrote:> I am trying out having multiple environments so that I can push a test > config to a single server in production. The idea being that I could > push out a config change to one server and see if the change works in > production. If it does then I can merge the change into the > production environment and push the change out to all the clients. > > So to test this I made a change to a config file in testing > environment and run the following on the client. > puppetd --test --server lhr1-ahbat-02 --environment testing > > any changes I make are not propagated. Any help would be much > appreciated. Specially if what I am trying to do with environments is > plain stupid.Looks like you''ve got things set up correctly, and your logs indicate that your testing configs are being read, so I''m guessing there''s a problem in the configurations themselves, rather than a configuration problem related to environments. -- It''s not to control, but to protect the citizens of Singapore. In our society, you can state your views, but they have to be correct. -- Ernie Hai, co-ordinator of the Singapore Government Internet Project --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
> > any changes I make are not propagated. Any help would be much > > appreciated. Specially if what I am trying to do with environments is > > plain stupid. > > Looks like you''ve got things set up correctly, and your logs indicate > that your testing configs are being read, so I''m guessing there''s a > problem in the configurations themselves, rather than a configuration > problem related to environments.Yes thanks for the pointer my the module was a little awry ;-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---