Fixed incorrect reference to pillar keepalived.defaults scope.

This commit is contained in:
Kenneth Østrup 2015-12-01 11:04:43 +01:00
parent 3a5f4c4679
commit 6ff28ed4db

View File

@ -17,10 +17,10 @@ global_defs {
{%- endfor %}
{%- endif %}
}
notification_email_from {{ salt['pillar.get']('keepalived:defaults:notification_email_from', 'keepalived@'~salt['grains.get']('fqdn') ) }}
smtp_server {{ salt['pillar.get']('keepalived:defaults:smtp_server', 'localhost') }}
notification_email_from {{ salt['pillar.get']('keepalived:global_defs:notification_email_from', 'keepalived@'~salt['grains.get']('fqdn') ) }}
smtp_server {{ salt['pillar.get']('keepalived:global_defs:smtp_server', 'localhost') }}
{%- if 'smtp_timeout' in salt['pillar.get']('keepalived:global_defs') %}
smtp_timeout {{ salt['pillar.get']('keepalived:defaults:smtp_timeout') }}
smtp_timeout {{ salt['pillar.get']('keepalived:global_defs:smtp_timeout') }}
{%- endif %}
}