Using the macro function.

This commit is contained in:
Jeff Baskin 2016-10-23 19:03:11 -04:00
parent 351e9f904c
commit 308cf7b22f

View File

@ -14,7 +14,9 @@
{%- macro config_entries(data) -%}
{%- if data is mapping -%}
{%- for entry_type in data|dictsort -%}
{{ entry_type }}
{{ entry_type }}{{ '\n' }}
{%- endfor -%}
{%- endif -%}
{%- endmacro -%}
[%- config_entries(keepalived_final_values) -%}