From a64dbf9aec8cc3a40acd3a529a9178d3abedb004 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sun, 28 Aug 2022 04:26:36 +0200 Subject: [PATCH] ifupdown2: update sample playbook for vxlan + upstream package --- playbooks/ifupdown2.yml | 43 +++++++++++++++++++++++++++++++++++++ playbooks/ldap_accounts.yml | 7 ++++++ playbooks/radvd.yml | 16 ++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 playbooks/ldap_accounts.yml create mode 100755 playbooks/radvd.yml diff --git a/playbooks/ifupdown2.yml b/playbooks/ifupdown2.yml index fcd816c..0a97a01 100755 --- a/playbooks/ifupdown2.yml +++ b/playbooks/ifupdown2.yml @@ -11,6 +11,7 @@ # TODO: netbox ifupdown2__hosts: ntp-1.int.infra.auro.re: + lo: auto ens18: gateways: - 2a09:6840:128::254 @@ -19,6 +20,7 @@ - 2a09:6840:128::203/56 - 10.128.0.203/16 dns-1.int.infra.auro.re: + lo: auto ens18: gateways: - 2a09:6840:128::254 @@ -27,6 +29,7 @@ - 2a09:6840:128::127/56 - 10.128.0.127/16 dhcp-1.isp.auro.re: + lo: auto ens18: gateways: - 2a09:6840:128::254 @@ -67,6 +70,7 @@ vlan_id: 1004 vlan_raw_device: clients dhcp-2.isp.auro.re: + lo: auto ens18: gateways: - 2a09:6840:128::254 @@ -107,6 +111,7 @@ vlan_id: 1004 vlan_raw_device: clients isp-1.rtr.infra.auro.re: + lo: auto ens18: gateways: - 2a09:6840:128::254 @@ -115,10 +120,25 @@ - 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 @@ -150,6 +170,7 @@ vlan_raw_device: clients ipv6_addrgen: false isp-2.rtr.infra.auro.re: + lo: auto ens18: gateways: - 2a09:6840:128::254 @@ -158,12 +179,30 @@ - 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 @@ -189,7 +228,11 @@ 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 diff --git a/playbooks/ldap_accounts.yml b/playbooks/ldap_accounts.yml new file mode 100644 index 0000000..2652c27 --- /dev/null +++ b/playbooks/ldap_accounts.yml @@ -0,0 +1,7 @@ +--- +- hosts: camelot.adm.auro.re + roles: + - sssd + vars: + xxx +... diff --git a/playbooks/radvd.yml b/playbooks/radvd.yml new file mode 100755 index 0000000..02c622b --- /dev/null +++ b/playbooks/radvd.yml @@ -0,0 +1,16 @@ +#!/usr/bin/env ansible-playbook +--- +- hosts: + - dhcp-1.isp.auro.re + - dhcp-2.isp.auro.re + vars: + radvd__interfaces: + ens19: + routes: + - network: 2a09:6841:1::/56 + ens20: + routes: + - network: 2a09:6841:2::/56 + roles: + - radvd +...