[routeurs] playbook to deploy routing

certbot_on_virtu
_shirenn 2021-05-19 14:33:42 +02:00 committed by Yohann D'ANELLO
parent 60c9f7579b
commit fccda8d486
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
6 changed files with 21 additions and 64 deletions

View File

@ -6,7 +6,7 @@ glob_keepalived:
smtp_server: smtp.adm.crans.org smtp_server: smtp.adm.crans.org
pool: pool:
all: all:
password: "plopisverysecure" password: "{{ vault.keepalived.password }}"
id: 60 id: 60
ipv6: yes ipv6: yes
notify: /usr/scripts/notify-dhcp notify: /usr/scripts/notify-dhcp

View File

@ -1,10 +1,5 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
# Deploy recursive DNS cache server
- hosts: dns_recursive
roles:
- bind-recursive
# Deploy authoritative DNS server # Deploy authoritative DNS server
- hosts: dns_authoritative - hosts: dns_authoritative
vars: vars:

View File

@ -1,58 +1,13 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
# Deploy sysctl config files - hosts: routeurs_vms
- hosts: crans_routeurs roles:
- logall
- hosts: firewall
vars: vars:
logs: service: "{{ glob_service_firewall | default({}) | combine(loc_service_firewall | default({})) }}"
ip: 172.16.10.1
roles: roles:
- sysctl-forwarding - sysctl-forwarding
- logall
- nftables - nftables
- service
- hosts: crans_routeurs
vars:
subnets:
- name: infra
prefix: fd00:0:0:11::/64
dns:
- fd00::11:0:ff:fe00:9911
- name: adh
prefix: 2a0c:700:12::/64
dns:
- 2a0c:700:12::ff:fe00:9912
- name: adh_nat
prefix: 2a0c:700:13::/64
dns:
- 2a0c:700:13::ff:fe00:9913
roles:
- radvd
# Deploy firewall
- hosts: crans_routeurs
vars:
re2o:
server: re2o.adm.crans.org
service_user: "{{ vault.re2o_service_user }}"
service_password: "{{ vault.re2o_service_password }}"
roles:
- firewall
# Deploy BGP server configuration on routers
- hosts: crans_routeurs
vars:
bgp:
as: 204515
remote_as: 8218
ipv4:
router_id: 158.255.113.73
bind_address: 158.255.113.73
network: 185.230.76.0/22
neighbor: 158.255.113.72
ipv6:
router_id: 185.230.79.62
bind_address: 2001:1b48:2:103::bb:2
network: 2a0c:700::/32
neighbor: 2001:1b48:2:103::bb:1
roles:
- bird

View File

@ -1,11 +1,11 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
# Deploy re2o # Deploy re2o
#- hosts: re2o - hosts: re2o
# vars: vars:
# re2o: "{{ glob_re2o | default({}) | combine(loc_re2o | default({})) }}" re2o: "{{ glob_re2o | default({}) | combine(loc_re2o | default({})) }}"
# roles: roles:
# - re2o - re2o
# Deploy radius server # Deploy radius server
- hosts: radius - hosts: radius
@ -14,5 +14,5 @@
freeradius: '{{ glob_freeradius | default({}) | combine(loc_freeradius | default({})) }}' freeradius: '{{ glob_freeradius | default({}) | combine(loc_freeradius | default({})) }}'
mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}' mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}'
roles: roles:
# - certbot - certbot
- freeradius - freeradius

0
plays/keepalived.yml 100755 → 100644
View File

View File

@ -0,0 +1,7 @@
#!/usr/bin/env ansible-playbook
---
- import_playbook: dhcp.yml
- import_playbook: bird.yml
- import_playbook: freeradius.yml
- import_playbook: firewall.yml
- import_playbook: dns-recursive.yml