[radvd] pep-crans

certbot_on_virtu
_shirenn 2021-05-15 14:27:36 +02:00 committed by Yohann D'ANELLO
parent ea85a83401
commit 821330bf99
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,23 @@
glob_radvd:
subnets:
- name: infra
prefix: fd00:0:0:11::/64
no_gateway: yes
dnssl: infra.crans.org
dns:
- fd00::11:0:ff:fe00:9911
- name: adh
prefix: 2a0c:700:12::/64
dnssl: adh.crans.org
dns:
- 2a0c:700:12::ff:fe00:9912
- name: adh_nat
prefix: 2a0c:700:13::/64
dnssl: adh-nat.crans.org
dns:
- 2a0c:700:13::ff:fe00:9913
- name: federez
prefix: 2a0c:700:254::/64
dnssl: federez.net
dns:
- 2a0c:700:254::ff:fe00:99fe

7
plays/radvd.yml 100755
View File

@ -0,0 +1,7 @@
#!/usr/bin/env ansible-playbook
---
- hosts: crans_routeurs
vars:
radvd: "{{ glob_radvd | default({}) | combine(loc_radvd | default({})) }}"
roles:
- radvd

View File

@ -1,7 +1,10 @@
{% for subnet in subnets %}
{% for subnet in radvd.subnets %}
interface {{ interfaces[subnet.name] }} {
AdvSendAdvert on;
AdvDefaultPreference high;
{% if subnet.no_gateway is defined and subnet.no_gateway %}
AdvDefaultLifetime 0;
{% endif %}
MaxRtrAdvInterval 30;
prefix {{ subnet.prefix }} {
@ -9,7 +12,7 @@ interface {{ interfaces[subnet.name] }} {
};
# La zone DNS
DNSSL {{ subnet.name | replace('_', '-') }}.crans.org {};
DNSSL {{ subnet.dnssl }} {};
# Les DNS récursifs
{% for dns in subnet.dns %}