Kenneth Holter
2010-Oct-05 13:20 UTC
[Puppet Users] Override puppet environment at the command line
Hi all. My puppet client has "environment = envA" defined in /etc/puppet/puppet.conf, but I''d like to override this manuall at the command line: "puppetd --server puppet.master.com --environment=envB". This doens''t seem to work, so it always run code from envA. Is there a way to override the environment variable like this? Best regards, Kenneth Holter -- 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.
Tony G.
2010-Oct-05 14:58 UTC
Re: [Puppet Users] Override puppet environment at the command line
Kenneth, On Tue, Oct 5, 2010 at 8:20 AM, Kenneth Holter <kenneho.ndu@gmail.com>wrote:> Hi all. > > > My puppet client has "environment = envA" defined in > /etc/puppet/puppet.conf, but I''d like to override this manuall at the > command line: "puppetd --server puppet.master.com --environment=envB". > This doens''t seem to work, so it always run code from envA. Is there a way > to override the environment variable like this? > > It should work with --environment=envB..Which version are you running? Could you share the puppet.conf in your master to see how you set the environments? Once I had this issue and the settings were ok until I realized that in the client there were two conf files in /etc/puppet those were puppet.conf and puppetd.conf the latter was used in older versions of puppet. http://groups.google.com/group/puppet-users/browse_thread/thread/95cf5a8552ba086a/8ca3447f3d35f128?lnk=gst&q=tonysk8#8ca3447f3d35f128> > Best regards, > Kenneth Holter > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- Tony http://blog.tonyskapunk.net -- 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.