March 2017
Beginner to intermediate
925 pages
18h 11m
English
If other people need to read or maintain your manifests, or if you want to share code with the community, it's a good idea to follow the existing style conventions as closely as possible. These govern such aspects of your code as layout, spacing, quoting, alignment, and variable references, and the official puppetlabs recommendations on style are available at http://docs.puppetlabs.com/guides/style_guide.html.
In this section, I'll show you a few of the more important examples and how to make sure that your code is style compliant.
Indent your manifests using two spaces (not tabs), as follows:
service {'httpd':
ensure => running,
}Always quote your resource names, as follows:
package { 'exim4': ...Read now
Unlock full access