From d6e55b1f9657094bf4d7bef26175346f48be10c3 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 4 Aug 2016 16:58:37 +0200 Subject: [PATCH] library/roles/keepalived/templates/keepalived.conf.j2: Add new options to the template. --- keepalived/templates/keepalived.conf.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/keepalived/templates/keepalived.conf.j2 b/keepalived/templates/keepalived.conf.j2 index 14e23776..0c70c50a 100644 --- a/keepalived/templates/keepalived.conf.j2 +++ b/keepalived/templates/keepalived.conf.j2 @@ -9,9 +9,19 @@ vrrp_script {{ script.name }} { {% for instance in keepalived_instances %} vrrp_instance {{ instance.name }} { interface {{ instance.interface }} + {% if instance.state is defined %} state {{ instance.state }} + {% endif %} virtual_router_id {{ instance.vrouter_id }} priority {{ instance.priority }} + {% if instance.notify is defined %} + notify {{ instance.notify }} + {% endif %} + {% if instance.authentication is defined %} + authentication { + auth_type {{ instance.authentication }} + auth_pass {{ instance.authpass }} + {% endif %} virtual_ipaddress { {% for addr in instance.v_addr %} {{ addr }}