Skip to content
Snippets Groups Projects
Verified Commit a3b83adb authored by anarcat's avatar anarcat
Browse files

puppet: environments are sticky!

parent ecfb92f4
No related branches found
No related tags found
No related merge requests found
Pipeline #246941 passed with warnings
......@@ -153,6 +153,13 @@ flag. For example, this will switch a node from `production` to
puppet agent --test --environment test
Note that this setting is **sticky**: further runs will *keep* the
`test` environment even if the `--environment` flag is not set, as the
setting is written in the `puppet.conf`. To reset to the `production`
environment, you can simply use that flag again:
puppet agent --test --environment test
A node or group of nodes can be switch to a different environment
using the [external node classifier](#external-node-classifier-enc).
......@@ -173,6 +180,15 @@ avoid overly broad debugging statements, if any, and to generally keep an
active eye on feature branches so as to prevent the accumulation of unreviewed
code.
Finally, note that environments are automatically destroyed (alongside
their branch) on the Puppet server after 2 weeks since the last
commit to the branch. An email warning about this will be sent to the
author of that last commit. This doesn't destroy the mirrored branch
on GitLab.
When an environment is removed, Puppet agents will revert back to the
`production` environment automatically.
### Modifying an existing configuration
For new deployments, this is *NOT* the preferred method. For example,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment