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: ...@@ -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
......
#!/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:
......
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
# Deploy sysctl config files - hosts: routeurs_vms
- hosts: crans_routeurs
vars:
logs:
ip: 172.16.10.1
roles: roles:
- sysctl-forwarding
- logall - 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: firewall
- hosts: crans_routeurs
vars: vars:
re2o: service: "{{ glob_service_firewall | default({}) | combine(loc_service_firewall | default({})) }}"
server: re2o.adm.crans.org
service_user: "{{ vault.re2o_service_user }}"
service_password: "{{ vault.re2o_service_password }}"
roles: roles:
- firewall - sysctl-forwarding
- nftables
# Deploy BGP server configuration on routers - service
- 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
#!/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 @@ ...@@ -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
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