Override puppet environment at the command line

1,858 views
Skip to first unread message

Kenneth Holter

unread,
Oct 5, 2010, 9:20:47 AM10/5/10
to puppet...@googlegroups.com
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

Tony G.

unread,
Oct 5, 2010, 10:58:19 AM10/5/10
to puppet...@googlegroups.com
Kenneth,

On Tue, Oct 5, 2010 at 8:20 AM, Kenneth Holter <kenne...@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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
Tony
http://blog.tonyskapunk.net
Reply all
Reply to author
Forward
0 new messages