glee
11/27/2022, 11:55 PMTips for specifying parameter and variable values
Parameters and variables can be structured as JSON. If they can't be parsed as JSON, they're treated as strings.
Parameters and variables can be specified using these data types and syntax:
• Strings (for example,)"centos"
◦ Variable-style syntax, which interpolates the result of referencing a fact (for example,)"I live at $ipaddress."
◦ Expression-style syntax, which interpolates the result of evaluating the embedded expression (for example,)${$os"release"}
> Note: Strings must be double-quoted, because single quotes aren't valid JSON.
> Tip: To enter a value in the console that contains a literal dollar sign, like a password hash — for example,— escape each dollar sign with a backslash to disable interpolation.$1$nnkkFwEc$safFMXYaUVfKrDV4FLCm0/
• Booleans (for example,ortrue)false
• Numbers (for example,)123
• Hashes (for example,){"a": 1}
> Note: Hashes must use colons rather than hash rockets.
• Arrays (for example,see also: Variable-style syntax: https://puppet.com/docs/pe/2019.8/grouping_and_classifying_nodes.html#tips_for_specifying_parameter_and_variable_values-variable-syntax Expression-style syntax: https://puppet.com/docs/pe/2019.8/grouping_and_classifying_nodes.html#tips_for_specifying_parameter_and_variable_values-expression-syntax)["1","2.3"]