|
Puppet Version: 5.3.4
Please add a setting that causes the agent to switch to a specific environment, e.g. production, when the agent-specified environment does not exist.
Our workflow:
-
Deploy a feature branch, e.g. change_ntp_server
-
Switch a node over to the feature branch for development, e.g. sudo puppet config set --section agent environment change_ntp_server
-
Run puppet, update branch, run puppet…
-
Merge the feature branch into production
-
Delete the feature branch
-
Our custom puppet wrapper detects that the change_ntp_server environment no longer exists, and switches the environment back to production
I don't particularly care if it switches the environment for just that run, or changes it in the configuration file.
We are currently using a python script to wrap puppet, but I've ported it to Go and we'll deploy that soon: puppetlabs-operations/puppet-cron.
|