add gs dhcp, dns, routing
and add thor to inventory
This commit is contained in:
parent
a6b15c0e10
commit
337906c6c0
6 changed files with 31 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.retry
|
||||
tmp
|
||||
ldap-password.txt
|
||||
|
|
|
@ -77,5 +77,4 @@ radius_pg_replication_password: "{{ vault_re2o_db_user_passwords.replication }}"
|
|||
radius_pg_re2o_ro_password: "{{ vault_re2o_db_user_passwords.re2o_ro }}"
|
||||
|
||||
|
||||
|
||||
|
||||
apartment_block_dhcp: "{{ apartment_block }}"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
apartment_block: gs
|
||||
apartment_block_dhcp: sand
|
||||
|
||||
apartment_block_id: 5
|
||||
|
||||
router_ip_suffix: 240
|
||||
router_ip_suffix: 254
|
||||
|
|
19
hosts
19
hosts
|
@ -121,17 +121,31 @@ ldap-replica-edc-backup.adm.auro.re
|
|||
|
||||
[gs_pve]
|
||||
perceval.adm.auro.re
|
||||
lancelot.adm.auro.re
|
||||
odin.adm.auro.re
|
||||
|
||||
[gs_vm]
|
||||
dhcp-gs.adm.auro.re
|
||||
dhcp-gs-backup.adm.auro.re
|
||||
dns-gs.adm.auro.re
|
||||
dns-gs-backup.adm.auro.re
|
||||
routeur-gs.adm.auro.re
|
||||
routeur-gs-backup.adm.auro.re
|
||||
unifi-gs.adm.auro.re
|
||||
radius-gs.adm.auro.re
|
||||
radius-gs-backup.adm.auro.re
|
||||
prometheus-gs.adm.auro.re
|
||||
#inexistant : ldap-replica-gs.adm.auro.re
|
||||
#inexistant : ldap-replica-gs-backup.adm.auro.re
|
||||
|
||||
###############################################################################
|
||||
# Les Rives
|
||||
[rives_pve]
|
||||
thor.adm.auro.re
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Groups by location
|
||||
|
@ -164,6 +178,10 @@ edc_vm
|
|||
gs_pve
|
||||
gs_vm
|
||||
|
||||
# everything at Les Rives
|
||||
[rives:children]
|
||||
rives_pve
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Groups by type
|
||||
|
@ -187,6 +205,7 @@ fleming_pve
|
|||
pacaterie_pve
|
||||
edc_pve
|
||||
gs_pve
|
||||
rives_pve
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
# Set up DHCP servers.
|
||||
- hosts: dhcp-*.adm.auro.re, !dhcp-aurore*.adm.auro.re,!dhcp-gs*.adm.auro.re
|
||||
- hosts: dhcp-*.adm.auro.re, !dhcp-aurore*.adm.auro.re
|
||||
vars:
|
||||
service_repo: https://gitlab.federez.net/re2o/dhcp.git
|
||||
service_name: dhcp
|
||||
|
@ -16,13 +16,13 @@
|
|||
|
||||
|
||||
# Deploy unbound DNS server (recursive).
|
||||
- hosts: dns-*.adm.auro.re,!dns-aurore*.adm.auro.re,!dns-gs*.adm.auro.re
|
||||
- hosts: dns-*.adm.auro.re,!dns-aurore*.adm.auro.re
|
||||
roles:
|
||||
- unbound
|
||||
|
||||
|
||||
# Déploiement du service re2o aurore-firewall et keepalived
|
||||
- hosts: ~routeur-(pacaterie|edc|fleming).*\.adm\.auro\.re
|
||||
- hosts: ~routeur-(pacaterie|edc|fleming|gs).*\.adm\.auro\.re
|
||||
roles:
|
||||
- router
|
||||
|
||||
|
|
|
@ -43,12 +43,12 @@ subnet 10.{{ subnet_ids.users_wired }}.0.0 netmask 255.255.0.0 {
|
|||
option subnet-mask 255.255.0.0;
|
||||
option broadcast-address 10.{{ subnet_ids.users_wired }}.255.255;
|
||||
option routers 10.{{ subnet_ids.users_wired }}.0.{{ router_ip_suffix }};
|
||||
option domain-name "fil.{{ apartment_block }}.auro.re";
|
||||
option domain-name "fil.{{ apartment_block_dhcp }}.auro.re";
|
||||
option domain-search "auro.re";
|
||||
|
||||
option domain-name-servers 10.{{ subnet_ids.users_wired }}.0.{{ dns_host_suffix_main }}, 10.{{ subnet_ids.users_wired }}.0.{{ dns_host_suffix_backup }}, {{ backup_dns_servers|join(', ') }};
|
||||
|
||||
include "/var/local/re2o-services/dhcp/generated/dhcp.fil.{{ apartment_block }}.auro.re.list";
|
||||
include "/var/local/re2o-services/dhcp/generated/dhcp.fil.{{ apartment_block_dhcp }}.auro.re.list";
|
||||
|
||||
deny unknown-clients;
|
||||
}
|
||||
|
@ -60,12 +60,12 @@ subnet 10.{{ subnet_ids.users_wifi }}.0.0 netmask 255.255.0.0 {
|
|||
option subnet-mask 255.255.0.0;
|
||||
option broadcast-address 10.{{ subnet_ids.users_wifi }}.255.255;
|
||||
option routers 10.{{ subnet_ids.users_wifi }}.0.{{ router_ip_suffix }};
|
||||
option domain-name "wifi.{{ apartment_block }}.auro.re";
|
||||
option domain-name "wifi.{{ apartment_block_dhcp }}.auro.re";
|
||||
option domain-search "auro.re";
|
||||
|
||||
option domain-name-servers 10.{{ subnet_ids.users_wifi }}.0.{{ dns_host_suffix_main }}, 10.{{ subnet_ids.users_wifi }}.0.{{ dns_host_suffix_backup }}, {{ backup_dns_servers|join(', ') }};
|
||||
|
||||
include "/var/local/re2o-services/dhcp/generated/dhcp.wifi.{{ apartment_block }}.auro.re.list";
|
||||
include "/var/local/re2o-services/dhcp/generated/dhcp.wifi.{{ apartment_block_dhcp }}.auro.re.list";
|
||||
|
||||
pool {
|
||||
range 10.{{ subnet_ids.users_wifi }}.8.0 10.{{ subnet_ids.users_wifi }}.10.255;
|
||||
|
|
Loading…
Reference in a new issue