Evan Hisey
2008-Apr-08 21:21 UTC
[Puppet Users] configprint does not regonize environments
When using puppetd ---environment=development --configprint <config name> the --environment variable is getting ignored. As you can see below Complete puppet.conf: [main] vardir = /var/lib/puppet logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl environment = production manifest = $manifestdir/site.pp [puppetmasterd] environments=production,development [puppetd] classfile = $vardir/classes.txt localconfig = $vardir/localconfig environments=production,development [production] manifestdir = /srv/puppet/production/manifests [development] manifestdir = /srv/puppet/development/manifests From default settings # puppetd --configprint manifest /etc/puppet/manifests/site.pp Using enviroments: # puppetd --environment=development --configprint manifest /etc/puppet/manifests/site.pp # puppetd --environment=production --configprint manifest /etc/puppet/manifests/site.pp On the other hand when I actually run puppetd to do something the variables get assigned more or less as expected. Evan --~--~---------~--~----~------------~-------~--~----~ 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-08 21:44 UTC
[Puppet Users] Re: configprint does not regonize environments
On Apr 8, 2008, at 4:21 PM, Evan Hisey wrote:> When using puppetd ---environment=development --configprint <config > name> the --environment variable is getting ignored. As you can see > belowPlease file this as a bug. -- The most dangerous strategy is to jump a chasm in two leaps. -- Benjamin Disraeli --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
Arjuna Christensen
2008-Apr-08 22:50 UTC
[Puppet Users] Re: configprint does not regonize environments
I didn''t think you could use "---environment=development" ? The correct syntax, afaik, is; "--environment <environment>"; see below, root@junglist /var/www# puppetd -t --environment testing --configprint environment /usr/local/lib/site_ruby/1.8/puppet/defaults.rb:136:in `handle'': Invalid environment testing (ArgumentError) (I haven''t defined the testing environment) Arjuna Christensen | Systems Engineer Maximum Internet Ltd 7a Parkhead Pl, Albany, North Shore, 0632 | PO Box 8006, Auckland, 1150, NZ DDI: + 64 9 913 9683 | Ph: +64 9 915 1825 | Fax:: +64 9 300 7227 arjuna.christensen@maxnet.co.nz| www.maxnet.co.nz ________________________________ Maxnet | mission critical internet ________________________________ This email (including any attachments) is confidential and intended only for the person to whom it is addressed. If you have received this email in error, please notify the sender immediately and erase all copies of this message and attachments. The views expressed in this email do not necessarily reflect those held by Maxnet. -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Luke Kanies Sent: Wednesday, 9 April 2008 9:45 a.m. To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: configprint does not regonize environments On Apr 8, 2008, at 4:21 PM, Evan Hisey wrote:> When using puppetd ---environment=development --configprint <config > name> the --environment variable is getting ignored. As you can see > belowPlease file this as a bug. -- The most dangerous strategy is to jump a chasm in two leaps. -- Benjamin Disraeli --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Apr-09 15:55 UTC
[Puppet Users] Re: configprint does not regonize environments
On Tue, Apr 8, 2008 at 4:44 PM, Luke Kanies <luke@madstop.com> wrote:> > On Apr 8, 2008, at 4:21 PM, Evan Hisey wrote: > > > When using puppetd ---environment=development --configprint <config > > name> the --environment variable is getting ignored. As you can see > > below > > > Please file this as a bug. >Done. Ticket #1183 Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---