Overview
Variables allow you to use data which is not (yet) defined or reference data which is defined somewhere else.
In Skipper, there are three types of variables:
- Dynamic Variables are used to reference data in the inventory.
- Static Variables are built into your binary which uses skipper, hence they are known at compile-time.
- User-Defined Variables are defined and referenced custom values in the inventory.
Format
The format of variables is ${variable_name}
. It can be used in Classes and Targets.
The regex used to match variables is:
\$\{((\w*)(\:\w+)*)\}