Skip to content
Snippets Groups Projects
Commit cfd6f682 authored by shirenn's avatar shirenn 🌊
Browse files

[keepalived] Add fe80::1 as link local addresses

parent b3a8de54
No related branches found
No related tags found
1 merge request!319[keepalived] Add fe80::1 as link local addresses
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
glob_keepalived: glob_keepalived:
mail_source: keepalived@crans.org mail_source: keepalived@crans.org
mail_destination: root@crans.org mail_destination: root@crans.org
smtp_server: smtp.adm.crans.org smtp_server: "{{ query('ldap', 'ip', 'redisdead', 'adm') | ipv4 | first }}"
routeur_id: "{{ ansible_hostname }}" routeur_id: "{{ ansible_hostname }}"
pool: pool:
VI_ALL: VI_ALL:
...@@ -15,16 +15,23 @@ glob_keepalived: ...@@ -15,16 +15,23 @@ glob_keepalived:
ipv4: 138.195.159.250/30 ipv4: 138.195.159.250/30
- vlan: aurore - vlan: aurore
ipv4: 185.230.79.253/29 ipv4: 185.230.79.253/29
ipv6: 2a0c:700:28::1/64 ipv6:
- {ip: '2a0c:700:28::1/64', scope: 'global'}
- vlan: srv - vlan: srv
ipv4: 185.230.79.62/26 ipv4: 185.230.79.62/26
ipv6: 2a0c:700:2::ff:fe00:9902/64 ipv6:
- {ip: '2a0c:700:2::ff:fe00:9902/64', scope: 'global'}
- {ip: 'fe80::1/64', scope: 'link'}
- vlan: srv_nat - vlan: srv_nat
ipv4: 172.16.3.99/24 ipv4: 172.16.3.99/24
ipv6: 2a0c:700:3::ff:fe00:9903/64 ipv6:
- {ip: '2a0c:700:3::ff:fe00:9903/64', scope: 'global'}
- {ip: 'fe80::1/64', scope: 'link'}
- vlan: adh - vlan: adh
ipv4: 185.230.78.99/24 ipv4: 185.230.78.99/24
ipv6: 2a0c:700:12::ff:fe00:9912/48 ipv6:
- {ip: '2a0c:700:12::ff:fe00:9912/48', scope: 'global'}
- {ip: 'fe80::1/64', scope: 'link'}
- vlan: ens - vlan: ens
ipv4: 100.84.0.99/16 ipv4: 100.84.0.99/16
ipv6: 2a0c:700:54::ff:fe00:9954/48 ipv6: 2a0c:700:54::ff:fe00:9954/48
......
...@@ -16,3 +16,4 @@ loc_service_keepalived: ...@@ -16,3 +16,4 @@ loc_service_keepalived:
- radvd - radvd
- bird - bird
- bird6 - bird6
- router.target
...@@ -16,3 +16,4 @@ loc_service_keepalived: ...@@ -16,3 +16,4 @@ loc_service_keepalived:
- radvd - radvd
- bird - bird
- bird6 - bird6
- router.target
...@@ -16,3 +16,4 @@ loc_service_keepalived: ...@@ -16,3 +16,4 @@ loc_service_keepalived:
- radvd - radvd
- bird - bird
- bird6 - bird6
- router.target
...@@ -45,7 +45,9 @@ vrrp_instance {{ instance.name }}6 { ...@@ -45,7 +45,9 @@ vrrp_instance {{ instance.name }}6 {
virtual_ipaddress { virtual_ipaddress {
{% for zone in keepalived.pool[instance.name].zones %} {% for zone in keepalived.pool[instance.name].zones %}
{% if zone.ipv6 is defined %} {% if zone.ipv6 is defined %}
{{ zone.ipv6 }} dev {{ interfaces[zone.vlan] }} scope global {% for ip in zone.ipv6 %}
{{ ip.ip }} dev {{ interfaces[zone.vlan] }} scope {{ ip.scope }}
{% endfor %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment