From 73ba6cb04c399a559e80bcb3c686596b0469c9d3 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 7 Aug 2024 17:06:42 -0400 Subject: [PATCH] ansible: Add test cluster Signed-off-by: Kienan Stewart Change-Id: I9afd73e9cbadbc5698e0562835a1f6406edf45bb --- .../cloud01.internal.efficios.com.yml | 33 +++++++++++++++++ .../cloud02.internal.efficios.com.yml | 34 ++++++++++++++++++ .../cloud03.internal.efficios.com.yml | 35 +++++++++++++++++++ automation/ansible/hosts | 9 +++++ 4 files changed, 111 insertions(+) create mode 100644 automation/ansible/host_vars/cloud01.internal.efficios.com.yml create mode 100644 automation/ansible/host_vars/cloud02.internal.efficios.com.yml create mode 100644 automation/ansible/host_vars/cloud03.internal.efficios.com.yml diff --git a/automation/ansible/host_vars/cloud01.internal.efficios.com.yml b/automation/ansible/host_vars/cloud01.internal.efficios.com.yml new file mode 100644 index 0000000..1b82cec --- /dev/null +++ b/automation/ansible/host_vars/cloud01.internal.efficios.com.yml @@ -0,0 +1,33 @@ +--- +lxd_cluster_ip: 172.18.0.31 +lxd_cluster: + server_name: cloud01 + enabled: true + member_config: + - entity: storage-pool + name: default + key: source + value: tank/lxd +netplan_manage: true +netplan_content: | + network: + version: 2 + renderer: networkd + ethernets: + enp8s0f0: + dhcp4: no + bridges: + br102: + interfaces: + - enp8s0f0 + accept-ra: false + addresses: + - 172.18.0.31/16 + routes: + - to: default + via: 172.18.0.1 + nameservers: + search: + - internal.efficios.com + addresses: + - 172.18.0.13 diff --git a/automation/ansible/host_vars/cloud02.internal.efficios.com.yml b/automation/ansible/host_vars/cloud02.internal.efficios.com.yml new file mode 100644 index 0000000..fbd259a --- /dev/null +++ b/automation/ansible/host_vars/cloud02.internal.efficios.com.yml @@ -0,0 +1,34 @@ +--- +lxd_cluster_ip: 172.18.0.32 +lxd_cluster: + server_name: cloud02 + server_address: 172.18.0.32 + enabled: true + member_config: + - entity: storage-pool + name: default + key: source + value: tank/lxd +netplan_manage: true +netplan_content: | + network: + version: 2 + renderer: networkd + ethernets: + enp8s0f0: + dhcp4: no + bridges: + br102: + interfaces: + - enp8s0f0 + accept-ra: false + addresses: + - 172.18.0.32/16 + routes: + - to: default + via: 172.18.0.1 + nameservers: + search: + - internal.efficios.com + addresses: + - 172.18.0.13 diff --git a/automation/ansible/host_vars/cloud03.internal.efficios.com.yml b/automation/ansible/host_vars/cloud03.internal.efficios.com.yml new file mode 100644 index 0000000..90698c4 --- /dev/null +++ b/automation/ansible/host_vars/cloud03.internal.efficios.com.yml @@ -0,0 +1,35 @@ +--- +lxd_cluster_ip: 172.18.0.33 +lxd_cluster: + server_name: cloud03 + server_address: 172.18.0.33 + cluster_token: 'eyJzZXJ2ZXJfbmFtZSI6ImNsb3VkMDMiLCJmaW5nZXJwcmludCI6IjdlZTc4NmU1YTk5YjAyOGNhZWM2M2ZmMWM3ZDExNzBjMjFkYTk2NGM2ODZjNjJkNTI4NGMzYTZkYjFkMDFjYjgiLCJhZGRyZXNzZXMiOlsiMTcyLjE4LjAuMzE6ODQ0MyJdLCJzZWNyZXQiOiI3NDI5NWE0OTc4NmIyNjZlYjczMmU4OTg5ODIyYzZiY2EyODFjMmY2YWVhOWEzZGM5OTA4ODc4MGMzZDU5MGEzIiwiZXhwaXJlc19hdCI6IjIwMjQtMDgtMDhUMTE6NDE6MDIuMjI2NTM2MTgtMDQ6MDAifQ==' + enabled: true + member_config: + - entity: storage-pool + name: default + key: source + value: tank/lxd +netplan_manage: true +netplan_content: | + network: + version: 2 + renderer: networkd + ethernets: + enp8s0f0: + dhcp4: no + bridges: + br102: + interfaces: + - enp8s0f0 + accept-ra: false + addresses: + - 172.18.0.33/16 + routes: + - to: default + via: 172.18.0.1 + nameservers: + search: + - internal.efficios.com + addresses: + - 172.18.0.13 diff --git a/automation/ansible/hosts b/automation/ansible/hosts index 345e21c..fc61f43 100644 --- a/automation/ansible/hosts +++ b/automation/ansible/hosts @@ -16,6 +16,10 @@ ci-host-arm64-1a.internal.efficios.com ci-host-arm64-1b.internal.efficios.com ci-host-arm64-2a.internal.efficios.com ci-host-arm64-2b.internal.efficios.com +# Test cluster +cloud01.internal.efficios.com +cloud02.internal.efficios.com +cloud03.internal.efficios.com [lxd_cluster_ci] ci-host-amd64-1a.internal.efficios.com @@ -27,6 +31,11 @@ ci-host-amd64-2b.internal.efficios.com ci-host-amd64-2c.internal.efficios.com ci-host-amd64-2d.internal.efficios.com +[lxd_cluster_ci_dev] +cloud01.internal.efficios.com +cloud02.internal.efficios.com +cloud03.internal.efficios.com + [windows] ci-host-win11-arm64-01.internal.efficios.com -- 2.34.1