From 3f49175c1d4aaab548101e0b9207d9b0bf4f4cb2 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 10 Oct 2021 12:08:49 -0500 Subject: [PATCH] host: vmhost0: Set host-specific network config *vmhost0.pyrocufflink.blue* no longer uses `dhcpcd` for network configuration, but *systemd-networkd*. The host-specific network settings for a VM host include the configuration for the management interface, as well as the configuration of the physical ports that make up the bonded interfaces. --- host_vars/vmhost0.pyrocufflink.blue.yml | 55 ++++++++++++++++++++----- hosts.offline | 1 + 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/host_vars/vmhost0.pyrocufflink.blue.yml b/host_vars/vmhost0.pyrocufflink.blue.yml index d0acfd6..0c42e2c 100644 --- a/host_vars/vmhost0.pyrocufflink.blue.yml +++ b/host_vars/vmhost0.pyrocufflink.blue.yml @@ -1,13 +1,48 @@ -dhcpcd_nodev: true -dhcpcd_allow_interfaces: -- enp5s0 -- bond1 -dhcpcd_interfaces: -- name: bond1 - config: - - noipv4 - - static ip6_address=fd68:c2d2:500e:3ea3:3c35:bbaf:f9a3:ad9a/64 -storage_iface: bond1 +storage_net_address: fd68:c2d2:500e:3ea3:3c35:bbaf:f9a3:ad9a/64 + +networkd_networks: +- name: 30-enp5s0 + Match: + Name: enp5s0 + Network: + Address: 172.30.0.18/26 + Gateway: 172.30.0.1 + DNS: 172.30.0.4 + +- name: 35-enp6s0f0 + Match: + Name: enp6s0f0 + Network: + Description: Storage NIC bonded port 0 + Bond: bond1 + DHCP: 'no' + LinkLocalAddressing: 'no' +- name: 35-enp6s0f1 + Match: + Name: enp6s0f1 + Network: + Description: Storage NIC bonded port 0 + Bond: bond1 + DHCP: 'no' + LinkLocalAddressing: 'no' + +- name: 35-enp7s0f0 + Match: + Name: enp7s0f0 + Network: + Description: VM NIC bonded port 0 + Bond: bond0 + DHCP: 'no' + LinkLocalAddressing: 'no' +- name: 35-enp7s0f1 + Match: + Name: enp7s0f1 + Network: + Description: VM NIC bonded port 1 + Bond: bond0 + DHCP: 'no' + LinkLocalAddressing: 'no' + samba_interfaces: - enp5s0 collectd_network_servers: diff --git a/hosts.offline b/hosts.offline index 88ba727..e8ae0eb 100644 --- a/hosts.offline +++ b/hosts.offline @@ -21,6 +21,7 @@ koji0.pyrocufflink.blue koji0.pyrocufflink.blue [networkd] +vmhost0.pyrocufflink.blue [pyrocufflink] koji0.pyrocufflink.blue