ksa
ksa

Reputation: 25

Puppet Environments

How to Change default production environment to Development in puppet enterprise version 5.5.2.

I tried soem steps but i got "Local environment: 'DEV' doesn't match server specified node environment 'production', switching agent to 'production'" error.

Upvotes: 0

Views: 429

Answers (3)

ksa
ksa

Reputation: 25

Specifying in /etc/puppetlabs/puppet.conf
[agent]
environment = dev
report = true
pluginsync = true
runinterval=31557600

In master console (after creating group)
go to Rules Tab.In fact select agent specified environment and give the name of the environment as dev.Nodes which matches the environment will dynamically added to the group.

Upvotes: 1

Scottie H
Scottie H

Reputation: 354

This is the command that I run, on the agent, to change my environment:
puppet config set --section agent environment development
On Linux, you can see this change in:
/etc/puppetlabs/puppet/puppet.conf
you should see something like this:
...
[agent]
environment = development

Upvotes: 0

John Bollinger
John Bollinger

Reputation: 180351

I'm uncertain where in PE's control panel you can set this, though I would expect it to be in there somewhere. If you're willing and able to modify Puppet's configuration files, however, then it's the environment property that you want to twiddle, and for this purpose, you should set it in the [master] section. It has different meaning in other sections, so do not set it globally. And of course, it's therefore on the master were you need to set it.

Upvotes: 0

Related Questions