From ee2d6aa9660bb835e934db18dd2ff31e39c2e847 Mon Sep 17 00:00:00 2001 From: Neil Scholten Date: Wed, 16 Sep 2015 10:35:33 +0200 Subject: [PATCH] fixed missing closing bracked of global_defs preventing vrrp scripts from working properly --- keepalived/templates/keepalived.jinja | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 8e518a5..90ab3d1 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -10,7 +10,7 @@ # Global settings #--------------------------------------------------------------------- global_defs { - notification_email { + notification_email { {%- if 'notification_emails' in salt['pillar.get']('keepalived:global_defs') %} {%- for email in salt['pillar.get']('keepalived:global_defs:notification_emails', {}).iteritems() %} {{ email }} @@ -22,6 +22,7 @@ global_defs { {%- if 'smtp_timeout' in salt['pillar.get']('keepalived:global_defs') %} smtp_timeout {{ salt['pillar.get']('keepalived:defaults:smtp_timeout') }} {%- endif %} +} #--------------------------------------------------------------------- # static network configuration @@ -35,7 +36,7 @@ static_ipaddress { } {%- endif %} -# static routes +# static routes {%- if 'static_routes' in salt['pillar.get']('keepalived') %} static_route { {%- for route in salt['pillar.get']('keepalived:static_routes', {}).iteritems() %}