[radvd] pep-crans
parent
ea85a83401
commit
821330bf99
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: crans_routeurs
|
||||
vars:
|
||||
radvd: "{{ glob_radvd | default({}) | combine(loc_radvd | default({})) }}"
|
||||
roles:
|
||||
- radvd
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue