canmove, Confirmed users
1,394
edits
(→Syntax) |
|||
| Line 87: | Line 87: | ||
== Syntax == | == Syntax == | ||
Puppet gets a little unpredictable around what it does and does not allow in names. To be safe, stick with [a-zA-Z_][a-zA-Z0-9_] for class and variable names, just like C identifiers. In particular, do not use '-' in class or variable names (the latter won't work; the former will almost work). | Puppet gets a little unpredictable around what it does and does not allow in names. To be safe, stick with [a-zA-Z_][a-zA-Z0-9_] for class and variable names, just like C identifiers. In particular, do not use '-' in class or variable names (the latter won't work; the former will almost work but is [http://docs.puppetlabs.com/learning/modules1.html#an-aside-names-namespaces-and-scope illegal]). | ||
== Nit-Worthy Code Style == | == Nit-Worthy Code Style == | ||