Created
April 7, 2015 17:34
-
-
Save johnzimm/77bb37184f9f2fb57bc0 to your computer and use it in GitHub Desktop.
Puppet Example .pp File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Class/Define: module_name::class_or_define | |
| # | |
| # One Liner about what this does | |
| # | |
| # Parameters: | |
| # - The $required does.... | |
| # - The $paramater does ..... | |
| # - One line per parameter... | |
| # | |
| # Actions: | |
| # | |
| # Requires: | |
| # | |
| # Sample Usage: | |
| # | |
| class class_or_define ( | |
| $required, | |
| $parameter = hiera('module_name::class_or_define::parameter', 'default value'), | |
| ) { | |
| # | |
| # Include other classes as necessary | |
| # Follow package file service as much as possible. | |
| # Keep related things together | |
| # Make a new class or define for re-usable components. | |
| # | |
| # | |
| # Package | |
| # | |
| # | |
| # File | |
| # | |
| # | |
| # Service | |
| # | |
| } # end class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment