Skip to content

Commit fb2cd30

Browse files
committed
Update keepalived.conf.tmpl.j2
1 parent 1b58cf0 commit fb2cd30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/keepalived/keepalived.conf.tmpl.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ vrrp_instance VI_{{ vrrp['virtual_router_id'] }} {
2828
unicast_src_ip {{ vrrp['primary_ip'] }}
2929
unicast_peer {
3030
{% for ip in vrrp['secondary_ip'] %}
31-
{{ vrrp['secondary_ip'] }}
31+
{{ ip }}
3232
{% endfor %}
3333
}
3434
virtual_ipaddress {
35-
{% for ip in {{ vrrp['cluster_ip'] }} %}
36-
{{ vrrp['cluster_ip'] }}
35+
{% for ip in vrrp['cluster_ip'] %}
36+
{{ ip }}
3737
{% endfor %}
3838
}
3939
track_script {

0 commit comments

Comments
 (0)