diff --git a/templates/system-probe.yaml.j2 b/templates/system-probe.yaml.j2 index deb28ef1..50138b2b 100644 --- a/templates/system-probe.yaml.j2 +++ b/templates/system-probe.yaml.j2 @@ -2,7 +2,14 @@ {% if system_probe_config is defined and system_probe_config|length > 0 -%} system_probe_config: -{% filter indent(width=2, first=True) %} +{# The "first" option is only supported by jinja 2.10+ + which is not present on older systems (CentOS 7, Debian 8, etc.) + Using the equivalent option "indentfirst" will work with + all currently existing jinja 2 versions (as of this comment, up to 2.10). + TODO: when future versions of Jinja are released, check that + indentfirst is still supported. + #} +{% filter indent(width=2, indentfirst=True) %} {{ system_probe_config | to_nice_yaml }} {% endfilter %} {% endif %}