keepalived-formula/keepalived/templates/keepalived.jinja

25 lines
596 B
Plaintext
Raw Normal View History

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