Skip to content

Commit ecd2812

Browse files
committed
Make vips optional
Without this patch, it's impossible to have keepalived working without a VIP (for the rare cases without VIPs). Closes: #167
1 parent 83e4ad7 commit ecd2812

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/keepalived.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ vrrp_instance {{ name }} {
146146
{% endfor %}
147147
}
148148
{% endif %}
149+
{% if instance.vips is defined and instance.vips | length > 0 %}
149150
virtual_ipaddress {
150151
{% for vip in instance.vips %}
151152
{{ vip }}
152153
{% endfor %}
153154
}
155+
{% endif %}
154156
{% if instance.vips_excluded is defined and instance.vips_excluded | length > 0 %}
155157
virtual_ipaddress_excluded {
156158
{% for vip in instance.vips_excluded %}

0 commit comments

Comments
 (0)