25 lines
665 B
Plaintext
Raw Normal View History

2015-07-29 23:55:31 -07:00
# keepalived configuration
#
# **** DO NOT EDIT THIS FILE ****
#
# This file is managed by Salt.
# Any changes will be overwritten.
2016-10-23 19:17:58 -04:00
{{ '\n' }}
2016-10-23 18:56:24 -04:00
{%- import_yaml 'keepalived/defaults.yaml' as keepalived_defaults %}
{%- set keepalived_final_values = salt.pillar.get(
2016-10-23 19:29:26 -04:00
'keepalived',
2016-10-23 18:56:24 -04:00
default=keepalived_defaults,
merge=True) %}
2016-10-23 19:44:51 -04:00
{%- macro config_entries(data, indents) -%}
2016-10-23 18:56:24 -04:00
{%- if data is mapping -%}
2016-10-23 19:35:40 -04:00
{%- for entry in data|dictsort -%}
2016-10-23 19:44:51 -04:00
{{ entry[0]|indent(indents, True) }} {
{{ config_entries(entry[1], indents + 2) }}
2016-10-23 19:48:34 -04:00
{{ '}\n'|indent(indents, True) }}
2016-10-23 18:56:24 -04:00
{%- endfor -%}
{%- endif -%}
{%- endmacro -%}
2016-10-23 19:03:11 -04:00
2016-10-23 19:44:51 -04:00
{{ config_entries(keepalived_final_values, 0) }}