puppetaws-opsworkspuppet-enterprise

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.


Solution

  • 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