keepalived-formula/keepalived/templates/config.jinja

12 lines
282 B
Plaintext
Raw Normal View History

2017-01-19 01:51:16 +01:00
{%- macro keepalived_config(data) -%}
{%- if data is none -%}
{{ '\n' }}
{%- elif data is mapping -%}
{%- for key, value in data.iteritems() -%}
{{ key }} {{ keepalived_config(value) }}
{%- endfor -%}
{%- else -%}
{{ data }}{{ '\n' }}
{%- endif -%}
{%- endmacro -%}