canmove, Confirmed users
1,394
edits
(Created page with "It's a little-known fact of Puppet that when you write require => Class['foo::bar'] only the terminal resources are implicitly required. Specifically, any classes or defines t...") |
|||
Line 34: | Line 34: | ||
} | } | ||
</pre> | </pre> | ||
{{warning|this syntax does not work with puppet masters older than 2.7.14; for those versions, each individual class must be surrounded by its own anchor}} | |||
* Declare two anchors at the top, named ''$classname::begin'' and ''$classname::end''. Putting this at the top makes it clear the class is anchored. | * Declare two anchors at the top, named ''$classname::begin'' and ''$classname::end''. Putting this at the top makes it clear the class is anchored. | ||
** For defines, include the title in the anchor names, e.g., "python::virtualenv::$dir::begin". | ** For defines, include the title in the anchor names, e.g., "python::virtualenv::$dir::begin". |