256 lines
6.4 KiB
YAML
Executable file
256 lines
6.4 KiB
YAML
Executable file
#!/usr/bin/env ansible-playbook
|
|
---
|
|
- hosts:
|
|
- ntp-1.int.infra.auro.re
|
|
- dns-1.int.infra.auro.re
|
|
- dhcp-1.isp.auro.re
|
|
- dhcp-2.isp.auro.re
|
|
- isp-1.rtr.infra.auro.re
|
|
- isp-2.rtr.infra.auro.re
|
|
vars:
|
|
# TODO: netbox
|
|
ifupdown2__hosts:
|
|
ntp-1.int.infra.auro.re:
|
|
lo: auto
|
|
ens18:
|
|
gateways:
|
|
- 2a09:6840:128::254
|
|
- 10.128.0.254
|
|
addresses:
|
|
- 2a09:6840:128::203/56
|
|
- 10.128.0.203/16
|
|
dns-1.int.infra.auro.re:
|
|
lo: auto
|
|
ens18:
|
|
gateways:
|
|
- 2a09:6840:128::254
|
|
- 10.128.0.254
|
|
addresses:
|
|
- 2a09:6840:128::127/56
|
|
- 10.128.0.127/16
|
|
dhcp-1.isp.auro.re:
|
|
lo: auto
|
|
ens18:
|
|
gateways:
|
|
- 2a09:6840:128::254
|
|
- 10.128.0.254
|
|
addresses:
|
|
- 2a09:6840:128::204/56
|
|
- 10.128.0.204/16
|
|
ens19: null
|
|
clients:
|
|
bridge_vlan_aware: true
|
|
bridge_ports:
|
|
- ens19
|
|
bridge_vids:
|
|
- 1000-1004
|
|
client-0:
|
|
addresses:
|
|
- 100.64.0.2/27
|
|
vlan_id: 1000
|
|
vlan_raw_device: clients
|
|
client-1:
|
|
addresses:
|
|
- 100.64.0.34/27
|
|
vlan_id: 1001
|
|
vlan_raw_device: clients
|
|
client-2:
|
|
addresses:
|
|
- 100.64.0.66/27
|
|
vlan_id: 1002
|
|
vlan_raw_device: clients
|
|
client-3:
|
|
addresses:
|
|
- 100.64.0.98/27
|
|
vlan_id: 1003
|
|
vlan_raw_device: clients
|
|
client-4:
|
|
addresses:
|
|
- 100.64.0.130/27
|
|
vlan_id: 1004
|
|
vlan_raw_device: clients
|
|
dhcp-2.isp.auro.re:
|
|
lo: auto
|
|
ens18:
|
|
gateways:
|
|
- 2a09:6840:128::254
|
|
- 10.128.0.254
|
|
addresses:
|
|
- 2a09:6840:128::91/56
|
|
- 10.128.0.91/16
|
|
ens19: null
|
|
clients:
|
|
bridge_vlan_aware: true
|
|
bridge_ports:
|
|
- ens19
|
|
bridge_vids:
|
|
- 1000-1004
|
|
client-0:
|
|
addresses:
|
|
- 100.64.0.3/27
|
|
vlan_id: 1000
|
|
vlan_raw_device: clients
|
|
client-1:
|
|
addresses:
|
|
- 100.64.0.35/27
|
|
vlan_id: 1001
|
|
vlan_raw_device: clients
|
|
client-2:
|
|
addresses:
|
|
- 100.64.0.67/27
|
|
vlan_id: 1002
|
|
vlan_raw_device: clients
|
|
client-3:
|
|
addresses:
|
|
- 100.64.0.99/27
|
|
vlan_id: 1003
|
|
vlan_raw_device: clients
|
|
client-4:
|
|
addresses:
|
|
- 100.64.0.131/27
|
|
vlan_id: 1004
|
|
vlan_raw_device: clients
|
|
isp-1.rtr.infra.auro.re:
|
|
lo: auto
|
|
ens18:
|
|
gateways:
|
|
- 2a09:6840:128::254
|
|
- 10.128.0.254
|
|
addresses:
|
|
- 2a09:6840:128::255/56
|
|
- 10.128.0.255/16
|
|
ens19: null
|
|
ens20:
|
|
addresses:
|
|
- 2a09:6840:136:0:1::/56
|
|
- 10.136.0.1/16
|
|
vxlan:
|
|
mtu: 1450
|
|
vxlan_learning: true
|
|
vxlan_physdev: ens20
|
|
vxlan_port: 4789
|
|
#vxlan_mcastgrp: ff02::15c
|
|
bridge_vlan_vni_map: 1000-1004=1000-1004
|
|
bridge_vids:
|
|
- 1000-1004
|
|
bridge_learning: false
|
|
clients:
|
|
bridge_vlan_aware: true
|
|
bridge_ports:
|
|
- ens19
|
|
- vxlan
|
|
bridge_vids:
|
|
- 1000-1004
|
|
bridge_disable_pvid: true
|
|
forward: true
|
|
ipv6_addrgen: false
|
|
client-0:
|
|
forward: true
|
|
vlan_id: 1000
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-1:
|
|
forward: true
|
|
vlan_id: 1001
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-2:
|
|
forward: true
|
|
vlan_id: 1002
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-3:
|
|
forward: true
|
|
vlan_id: 1003
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-4:
|
|
forward: true
|
|
vlan_id: 1004
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
isp-2.rtr.infra.auro.re:
|
|
lo: auto
|
|
ens18:
|
|
gateways:
|
|
- 2a09:6840:128::254
|
|
- 10.128.0.254
|
|
addresses:
|
|
- 2a09:6840:128::158/56
|
|
- 10.128.0.158/16
|
|
ens19: null
|
|
ens20:
|
|
addresses:
|
|
- 2a09:6840:136:0:2::/56
|
|
- 10.136.0.2/16
|
|
vxlan:
|
|
mtu: 1450
|
|
vxlan_learning: true
|
|
vxlan_physdev: ens20
|
|
vxlan_port: 4789
|
|
#vxlan_mcastgrp: ff02::15c
|
|
bridge_vlan_vni_map: 1000-1004=1000-1004
|
|
bridge_vids:
|
|
- 1000-1004
|
|
bridge_learning: false
|
|
clients:
|
|
bridge_vlan_aware: true
|
|
bridge_ports:
|
|
- ens19
|
|
- vxlan
|
|
bridge_vids:
|
|
- 1000-1004
|
|
bridge_disable_pvid: true
|
|
forward: true
|
|
ipv6_addrgen: false
|
|
client-0:
|
|
forward: true
|
|
vlan_id: 1000
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-1:
|
|
forward: true
|
|
vlan_id: 1001
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-2:
|
|
forward: true
|
|
vlan_id: 1002
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-3:
|
|
forward: true
|
|
vlan_id: 1003
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
client-4:
|
|
forward: true
|
|
vlan_id: 1004
|
|
vlan_raw_device: clients
|
|
ipv6_addrgen: false
|
|
ifupdown2__need_upstream_version_hosts:
|
|
- isp-1.rtr.infra.auro.re
|
|
- isp-2.rtr.infra.auro.re
|
|
ifupdown2__interfaces: "{{ ifupdown2__hosts[inventory_hostname] }}"
|
|
ifupdown2__need_upstream_version: "{{ inventory_hostname in ifupdown2__need_upstream_version_hosts }}"
|
|
roles:
|
|
- ifupdown2
|
|
|
|
- hosts:
|
|
- ntp-1.int.infra.auro.re
|
|
- dns-1.int.infra.auro.re
|
|
- dhcp-1.isp.auro.re
|
|
- dhcp-2.isp.auro.re
|
|
- isp-1.rtr.infra.auro.re
|
|
- isp-2.rtr.infra.auro.re
|
|
vars:
|
|
resolvconf__nameservers:
|
|
- 2a09:6840:128::127
|
|
- 10.128.0.127
|
|
resolvconf__domain: auro.re
|
|
resolvconf__search:
|
|
- "{{ inventory_hostname | remove_domain_suffix }}"
|
|
- auro.re
|
|
roles:
|
|
- resolvconf
|
|
...
|