Skip to content

config templates

Config Templates

A High Level Source of Truth for your Configuration

Config templates are a powerful way of encoding business logic in a clear and concise way so that it can be applied programmatically to the rXg. These are just my notes about some features, for official documentation please see Config Templates

In my opinion, true mastery of config templates comes from combining 3 things.

  1. A mastery of how config templates work syntactically 1.1 ERB Expansion 1.2 YAML Ingestion

  2. A wide understanding of the vocabulary of what can be configured via config templates, ie all the scaffolds.

  3. The ability combine the first 2 within the context of a particular deployment or operational plan

For the teaching I am going to focus primarily on #1 because that is something that can reasonably be learned in one blog post or short teaching session.

A single template could configure everything an rXg needs from layer 1 to layer 7. For example, here are just some things that can be configured by a config template: