Skip to content
Snippets Groups Projects
Verified Commit fccda8d4 authored by shirenn's avatar shirenn 🌊 Committed by ynerant
Browse files

[routeurs] playbook to deploy routing

parent 60c9f757
No related branches found
No related tags found
1 merge request!254Cachan
......@@ -6,7 +6,7 @@ glob_keepalived:
smtp_server: smtp.adm.crans.org
pool:
all:
password: "plopisverysecure"
password: "{{ vault.keepalived.password }}"
id: 60
ipv6: yes
notify: /usr/scripts/notify-dhcp
......
#!/usr/bin/env ansible-playbook
---
# Deploy recursive DNS cache server
- hosts: dns_recursive
roles:
- bind-recursive
# Deploy authoritative DNS server
- hosts: dns_authoritative
vars:
......
#!/usr/bin/env ansible-playbook
---
# Deploy sysctl config files
- hosts: crans_routeurs
vars:
logs:
ip: 172.16.10.1
- hosts: routeurs_vms
roles:
- sysctl-forwarding
- logall
- nftables
- 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
- hosts: firewall
vars:
re2o:
server: re2o.adm.crans.org
service_user: "{{ vault.re2o_service_user }}"
service_password: "{{ vault.re2o_service_password }}"
service: "{{ glob_service_firewall | default({}) | combine(loc_service_firewall | default({})) }}"
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
- sysctl-forwarding
- nftables
- service
#!/usr/bin/env ansible-playbook
---
# Deploy re2o
#- hosts: re2o
# vars:
# re2o: "{{ glob_re2o | default({}) | combine(loc_re2o | default({})) }}"
# roles:
# - re2o
- hosts: re2o
vars:
re2o: "{{ glob_re2o | default({}) | combine(loc_re2o | default({})) }}"
roles:
- re2o
# Deploy radius server
- hosts: radius
......@@ -14,5 +14,5 @@
freeradius: '{{ glob_freeradius | default({}) | combine(loc_freeradius | default({})) }}'
mirror: '{{ glob_mirror | default({}) | combine(loc_mirror | default({})) }}'
roles:
# - certbot
- certbot
- freeradius
File mode changed from 100755 to 100644
#!/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
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