Closed Bug 976547 Opened 11 years ago Closed 11 years ago

Puppet materials should adhere to a standard style guide

Categories

(Socorro :: Infra, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dmaher, Assigned: dmaher)

References

Details

For the same reasons that the code[1] and the documentation are expected to adhere to a style guide, so should our Puppet materials - in particular, the manifests.  This is an easy thing to implement now because we don't publish much Puppet stuff (yet); however, the longer we wait, the more painful this will become down the road.

I suggest using the community style guide[2] since it's generally considered to be highly readable and since the standard puppet-lint[3] tool uses this guide by default.

[1] http://socorro.readthedocs.org/en/latest/codingconventions.html
[2] http://docs.puppetlabs.com/guides/style_guide.html
[3] http://puppet-lint.com/
Assignee: nobody → dmaher
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 976639
Target Milestone: --- → 76
W could integrate lint into the build process like we do with pep8. In Boxen modules we use:

   puppet-lint \
     --fail-on-warnings \
     --no-80chars-check \
     --no-class_inherits_from_params_class-check \
     --with-filename manifests \

The downside is incorporating ruby into the release stack.
I see you're already on it with that dependent bug. Good show!
You need to log in before you can comment on or make changes to this bug.