Skip to content

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:

  1. Dynamic Variables are used to reference data in the inventory.
  2. Static Variables are built into your binary which uses skipper, hence they are known at compile-time.
  3. 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+)*)\}