Advanced configuration topics
Using a template engine
Steep contains a template engine that allows you to dynamically generate
content for YAML-based configuration files (steep.yaml
,
setups.yaml
,
services/services.yaml
, etc.) at startup.
You have to explicitly enable this feature by adding front matter to your YAML
file and setting the attribute template
to true
:
Steep uses Pebble Templates to compile the configuration files. Please refer to their website for a full documentation on the tags, functions, and filters you can use.
Within your template, you may access the following variables:
Here is a full example of a setups.yaml
file that uses the templating feature
to create two setups with the same parameters, an image name from an environment
variable, but different availability zones: