Skip to content

Commit 4343967

Browse files
authored
Merge pull request #220 from evrardjp/mhmd3bdo/master
Make vips optional
2 parents 83e4ad7 + ecd2812 commit 4343967

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)