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
cf5c2d55
Verified
Commit
cf5c2d55
authored
4 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
expand on possible improvements to puppet
parent
abf3601e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/puppet.md
+36
-3
36 additions, 3 deletions
howto/puppet.md
with
36 additions
and
3 deletions
howto/puppet.md
+
36
−
3
View file @
cf5c2d55
...
...
@@ -910,17 +910,50 @@ distribution, user and some service management is done from a central
location, managed in a git repository. This approach is often called
[
Infrastructure as code
](
https://en.wikipedia.org/wiki/Infrastructure_as_Code
)
.
This section also documents possible improvements to our Puppet
configuration that we are considering.
### Must have
TODO.
*
**secure**
: only sysadmins should have access to push configuration,
whatever happens. this includes deploying only audited and verified
Puppet code into production.
*
**code review**
: changes on servers should be verifiable by our peers,
through a git commit log
*
**fix permissions issues**
: deployment system should allow all admins
to push code to the puppet server without having to constantly fix
permissions (e.g. trough a
[
role account
](
https://gitlab.torproject.org/tpo/tpa/team/-/issues/29663
)
)
*
**secrets handling**
: there are some secrets in Puppet. those
should remain secret.
We mostly have this now, although there are concerns about permissions
being wrong sometimes, which a role account could fix.
### Nice to have
TODO.
Those are mostly issues with the current architecture we'd like to fix:
*
**Continuous Integration**
: before deployment, code should be vetted by
a peer and, ideally, automatically checked for errors and tested
*
**single source of truth**
: when we add/remove nodes, we should not
have to talk to multiple services (see also the
[
install automation
ticket
](
https://gitlab.torproject.org/tpo/tpa/team/-/issues/31239
)
and the
[
new-machine discussion
](
new-machine#discussion
)
*
**collaboration**
with other sysadmins outside of TPA, for which we
would need to...
*
...
**publicize our code**
(see
[
ticket 29387
](
https://gitlab.torproject.org/tpo/tpa/team/-/issues/29387
)
)
*
**no manual changes**
: every change on every server should be committed
to version control somewhere
*
**bare-metal recovery**
: it should be possible to recover a service's
*configuration*
from a bare Debian install with Puppet (and with
data from the
[
backup
](
backup
)
service of course...)
*
**one commit only**
: we shouldn't have to commit "twice" to get
changes propagated (once in a submodule, once in the parent module,
for example)
### Non-Goals
TODO.
*
**ad hoc changes**
to the infrastructure. one-off jobs should be
handled by
[
fabric
](
fabric
)
, Cumin, or straight SSH.
## Approvals required
...
...
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