Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
a3b83adb
Verified
Commit
a3b83adb
authored
1 month ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
puppet: environments are sticky!
parent
ecfb92f4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#246941
passed with warnings
1 month ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/puppet.md
+16
-0
16 additions, 0 deletions
howto/puppet.md
with
16 additions
and
0 deletions
howto/puppet.md
+
16
−
0
View file @
a3b83adb
...
...
@@ -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,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment