Reversing the order of template rendering from render template → parse YAML to parse YAML → render template.
As Jim suggested, this should make parsing more reliable and secure, but also has the added benefit that the templated configs are now valid YAML thus allowing checks with standard tools.
Reversing the order of template rendering from
render template
→parse YAML
toparse YAML
→render template
.As Jim suggested, this should make parsing more reliable and secure, but also has the added benefit that the templated configs are now valid YAML thus allowing checks with standard tools.