Commit 8f375eb9 authored by pa's avatar pa 🌊
Browse files

keepalivedv6

parent 8c1fdc2b
......@@ -5,6 +5,7 @@ keepalived:
password: "{{ vault_keepalived_radius_password }}"
id: 52
ipv6: yes
ipv4: yes
zones:
- vlan: adm
ipv4: 10.231.136.11/24
......@@ -21,7 +22,7 @@ keepalived:
router:
password: "{{ vault_keepalived_router_password }}"
id: 53
ipv6: no
ipv4: yes
zones:
- vlan: adm
ipv4: 10.231.136.254/24
......@@ -40,10 +41,18 @@ keepalived:
brd: 10.53.255.255
- vlan: zayo
ipv4: 158.255.113.73/31
router6:
password: "{{ vault_keepalived_router_password }}"
id: 54
ipv6: yes
zones:
- vlan: zayo
ipv6: 2001:1b48:2:103::bb:2/126
proxy:
password: "{{ vault_keepalived_proxy_password }}"
id: 51
ipv6: yes
ipv4: yes
zones:
- vlan: srv
ipv4: 185.230.79.194/32
......
......@@ -10,5 +10,9 @@ interfaces:
keepalived_instances:
- name: router
tag: VI_ROUT
state: MASTER
priority: 150
state: BACKUP
priority: 100
- name: router6
tag: VI_ROUTSIX
state: BACKUP
priority: 100
---
interfaces:
adm: ens23
zayo: ens22
keepalived_instances:
- name: router6
tag: VI_ROUTSIX
state: BACKUP
priority: 100
......@@ -17,5 +17,5 @@ keepalived_instances:
priority: 50
- name: router
tag: VI_ROUT
state: BACKUP
priority: 100
state: MASTER
priority: 150
......@@ -15,6 +15,7 @@ dhcp.adm.crans.org
odlyd.adm.crans.org
[keepalived]
ipv6-zayo.adm.crans.org
gulp.adm.crans.org
odlyd.adm.crans.org
eap.adm.crans.org
......
......@@ -9,6 +9,7 @@ global_defs {
}
{% for instance in keepalived_instances %}
{% if keepalived[instance.name].ipv4 is defined and keepalived[instance.name].ipv4 %}
vrrp_instance {{ instance.tag }}4 {
state {{ instance.state }}
priority {{ instance.priority }}
......@@ -32,8 +33,9 @@ vrrp_instance {{ instance.tag }}4 {
{% endfor %}
}
}
{% endif %}
{% if keepalived[instance.name].ipv6 %}
{% if keepalived[instance.name].ipv6 is defined and keepalived[instance.name].ipv6 %}
vrrp_instance {{ instance.tag }}6 {
state {{ instance.state }}
priority {{ instance.priority }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment