Hubert Krause
2010-Mar-10 10:07 UTC
[Puppet Users] multiple environments different manifests not working
Hello, I was running Puppet server in version 0.24.8 on Srerver and 0.24.4 up to 0.24.8 on client and configured multiple environments. The desired behavior is to have different sets of manifests and modules for my two environments "testing" and "production". But it works only for my modules not for my manifests folders. I discover this behavior because of an upgraded to version 0.25.4 on server and client, but I dont know if it is due to the update. For this update, I''ve changed the access to the puppetserver from passenger to the build in webbrick. My Clients are CentOS 5.4 and Debian Lenny, my Server is a CentOS 5.4 box. My configuration looks as follows: There are two folders in /etc/puppet: testing and production. On my server the puppet.conf looks like: [main] vardir = /var/lib/puppet logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl environments = production,testing [production] manifestdir = /etc/puppet/production/manifests modulepath = /etc/puppet/production/modules manifest = /etc/puppet/production/manifests/site.pp [testing] manifestdir = /etc/puppet/testing/manifests modulepath = /etc/puppet/testing/modules manifest = /etc/puppet/testing/manifests/site.pp [puppetmasterd] certdnsnames=puppet-server.fe.example.com:puppet-server.be.example.com:puppet-server.bla.example.com:puppet-server.test-frontend.example.com:puppet-server.test-backend.example.com [puppetd] classfile = $vardir/classes.txt localconfig = $vardir/localconfig server=puppet-server.fe.example.com environment = production On my Clients for the testing environment the puppet.conf file looks like: [main] vardir = /var/lib/puppet logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl environment=testing environments=testing [puppetd] classfile = $vardir/classes.txt localconfig = $vardir/localconfig server=puppet-server.fe.example.com Did someone have an idea what is going on in my case? best regards, Hubert -- Hubert Krause Risk & Fraud Division INFORM GmbH, Pascalstraße 23, 52076 Aachen, Germany Phone: +49 24 08 - 94 56 5145 E-Mail: hubert.krause@inform-ac.com, Web: http://www.inform-ac.com INFORM Institut fuer Operations Research und Management GmbH Registered AmtsG Aachen HRB1144 Gfhr. Adrian Weiler -- 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.
Hubert Krause
2010-Mar-12 15:11 UTC
Re: [Puppet Users] multiple environments different manifests not working: solved!
Hello list, Am Wednesday 10 March 2010 11:07:14 schrieb Hubert Krause:> I was running Puppet server in version 0.24.8 on Srerver and 0.24.4 up to > 0.24.8 on client and configured multiple environments. The desired behavior > is to have different sets of manifests and modules for my two > environments "testing" and "production". But it works only for my modules > not for my manifests folders. I discover this behavior because of anthe reason for ignoring the different manifests was a setting in /etc/sysconfig/puppetmaster. The settings name is "PUPPETMASTER_MANIFEST" and was set to my "production" site.pp. Because of my switch back to webbrick while upgrading puppet the Problem occurs in conjunction with the update. Best regards, Hubert -- Hubert Krause Risk & Fraud Division INFORM GmbH, Pascalstraße 23, 52076 Aachen, Germany Phone: +49 24 08 - 94 56 5145 E-Mail: hubert.krause@inform-ac.com, Web: http://www.inform-ac.com INFORM Institut fuer Operations Research und Management GmbH Registered AmtsG Aachen HRB1144 Gfhr. Adrian Weiler -- 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.
James Turnbull
2010-Mar-12 20:49 UTC
Re: [Puppet Users] multiple environments different manifests not working: solved!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/03/10 2:11 AM, Hubert Krause wrote:> Hello list, > > Am Wednesday 10 March 2010 11:07:14 schrieb Hubert Krause: >> I was running Puppet server in version 0.24.8 on Srerver and 0.24.4 up to >> 0.24.8 on client and configured multiple environments. The desired behavior >> is to have different sets of manifests and modules for my two >> environments "testing" and "production". But it works only for my modules >> not for my manifests folders. I discover this behavior because of an > > the reason for ignoring the different manifests was a setting > in /etc/sysconfig/puppetmaster. The settings name is "PUPPETMASTER_MANIFEST" > and was set to my "production" site.pp. Because of my switch back to webbrick > while upgrading puppet the Problem occurs in conjunction with the update.Hi Hubert Is this a default RH/Fedora etc setting on one your site had set yourself? Cheers James Turnbull - -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBS5qoviFa/lDkFHAyAQKhpggA2o4pp6/gBkwB5Tj2q330ehHi8g61cOWC /w4ofaQaYKI8wa2DI4JwPgZIvvD/LpgovCgjLe2x6UYJ1e4k4PQKBcDAcNmENelt QijOD864SVwPnkU5c9ZakwsbmrX1MP5RBrgWHzd324iqiVWu9p/TrLpzK/vP+twQ Oa6bRnbJ1Z5/CKBon9rOmmC3HRYT6PTEgPt/+g7pSz+jUMwLlCB0rxCvzsC2Mxfa /ghAR3Yc54ZDEfMZj2zAtsrJ6LNOGv1YMKVqEUScLvHM3tpoD0h3GPIYrVds/81J gIG5bWQIGNGTK3PHDWAwDXsextk4uVi5MVuWRpENasfYjLKXQFAJXw==zmLG -----END PGP SIGNATURE----- -- 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.
Hubert Krause
2010-Mar-15 09:55 UTC
Re: [Puppet Users] multiple environments different manifests not working: solved!
Hello James, Am Friday 12 March 2010 21:49:02 schrieb James Turnbull:> > the reason for ignoring the different manifests was a setting > > in /etc/sysconfig/puppetmaster. The settings name is > > "PUPPETMASTER_MANIFEST" and was set to my "production" site.pp. Because > > of my switch back to webbrick while upgrading puppet the Problem occurs > > in conjunction with the update.[..]> Is this a default RH/Fedora etc setting on one your site had set > yourself?No. Default is is: #PUPPETMASTER_MANIFEST=/etc/puppet/manifests/site.pp Every Setting is a comment by default. The Problem was made by myself. Cheers, Hubert -- Hubert Krause Risk & Fraud Division INFORM GmbH, Pascalstraße 23, 52076 Aachen, Germany Phone: +49 24 08 - 94 56 5145 E-Mail: hubert.krause@inform-ac.com, Web: http://www.inform-ac.com INFORM Institut fuer Operations Research und Management GmbH Registered AmtsG Aachen HRB1144 Gfhr. Adrian Weiler -- 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.