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
ca8b68a7
Verified
Commit
ca8b68a7
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
mention the question of puppet style
parent
6e8d1f38
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/puppet.mdwn
+19
-5
19 additions, 5 deletions
tsa/howto/puppet.mdwn
with
19 additions
and
5 deletions
tsa/howto/puppet.mdwn
+
19
−
5
View file @
ca8b68a7
...
...
@@ -48,6 +48,25 @@ This documents generally how things are setup.
facts, making it possible to get answer to questions like "Is this
host running apache2?" byt simply looking at a puppet variable.
## Style guide
Puppet manifests should generally follow the [Puppet style
guide][]. This can be easily done with [Flycheck][] in Emacs or a
similar plugin in your favorite text editor.
Many files do not *currently* follow the style guide, as they
*predate* the creation of said guide. Files should *not* be completely
reformatted unless there's a good reason. For example, if a
conditional covering a large part of a file is removed and the file
needs to be reindented, it's a good opportunity to fix style in the
file. Same if a file is split in two components or for some other
reason completely rewritten.
Otherwise the style already in use in the file should be followed.
[Flycheck]: http://flycheck.org/
[Puppet style guide]: https://puppet.com/docs/puppet/4.8/style_guide.html
## Hiera
[Hiera][] is a "key/value lookup tool for configuration data" which
...
...
@@ -107,11 +126,6 @@ modules. For example, the Bacula director is hardcoded in the `bacula`
base class (in `modules/bacula/manifests/init.pp`). That should be
moved into a class parameter, probably in `common.yaml`.
## Misc
- `puppet-lint` is a thing
- TODO: how to debug things
# How to guides
## Listing all hosts under puppet
...
...
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