Skip to content

Commit

Permalink
Make vips optional
Browse files Browse the repository at this point in the history
Without this patch, it's impossible to have keepalived working
without a VIP (for the rare cases without VIPs).

Closes: #167
  • Loading branch information
evrardjp committed Jul 15, 2022
1 parent 83e4ad7 commit ecd2812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,13 @@ vrrp_instance {{ name }} {
{% endfor %}
}
{% endif %}
{% if instance.vips is defined and instance.vips | length > 0 %}
virtual_ipaddress {
{% for vip in instance.vips %}
{{ vip }}
{% endfor %}
}
{% endif %}
{% if instance.vips_excluded is defined and instance.vips_excluded | length > 0 %}
virtual_ipaddress_excluded {
{% for vip in instance.vips_excluded %}
Expand Down

0 comments on commit ecd2812

Please sign in to comment.