From 6dab1dccd94cd6cdeb4258c67cc139204ea7db4d Mon Sep 17 00:00:00 2001 From: James Allenby Date: Tue, 28 Jul 2026 16:37:20 +0100 Subject: [PATCH] chore: rename bare metal to hive --- ansible/inventories/bare_metal/hosts.yaml | 8 -------- .../inventories/{bare_metal => hive}/group_vars/all.yaml | 1 + ansible/inventories/hive/hosts.yaml | 8 ++++++++ .../templates/kubeadm-config.yaml.j2 | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 ansible/inventories/bare_metal/hosts.yaml rename ansible/inventories/{bare_metal => hive}/group_vars/all.yaml (91%) create mode 100644 ansible/inventories/hive/hosts.yaml diff --git a/ansible/inventories/bare_metal/hosts.yaml b/ansible/inventories/bare_metal/hosts.yaml deleted file mode 100644 index a1cbc73..0000000 --- a/ansible/inventories/bare_metal/hosts.yaml +++ /dev/null @@ -1,8 +0,0 @@ -masters: - hosts: - vineta: - ansible_host: 10.0.0.201 - rotfront: - ansible_host: 10.0.0.202 - leng: - ansible_host: 10.0.0.203 diff --git a/ansible/inventories/bare_metal/group_vars/all.yaml b/ansible/inventories/hive/group_vars/all.yaml similarity index 91% rename from ansible/inventories/bare_metal/group_vars/all.yaml rename to ansible/inventories/hive/group_vars/all.yaml index ed6282a..14d78a9 100644 --- a/ansible/inventories/bare_metal/group_vars/all.yaml +++ b/ansible/inventories/hive/group_vars/all.yaml @@ -3,5 +3,6 @@ ansible_become_exe: sudo.ws ansible_user: kolibri vip_interface: eno1 vip_address: 10.0.0.200 +cluster_name: hive cluster_pod_subnet: 172.16.0.0/16 cluster_service_subnet: 10.96.0.0/16 diff --git a/ansible/inventories/hive/hosts.yaml b/ansible/inventories/hive/hosts.yaml new file mode 100644 index 0000000..11dbdfe --- /dev/null +++ b/ansible/inventories/hive/hosts.yaml @@ -0,0 +1,8 @@ +masters: + hosts: + vineta: + ansible_host: vineta.local + rotfront: + ansible_host: rotfront.local + leng: + ansible_host: leng.local diff --git a/ansible/roles/kubernetes_control_plane/templates/kubeadm-config.yaml.j2 b/ansible/roles/kubernetes_control_plane/templates/kubeadm-config.yaml.j2 index d3abaa3..dae2a5c 100644 --- a/ansible/roles/kubernetes_control_plane/templates/kubeadm-config.yaml.j2 +++ b/ansible/roles/kubernetes_control_plane/templates/kubeadm-config.yaml.j2 @@ -4,7 +4,7 @@ kind: InitConfiguration --- apiVersion: kubeadm.k8s.io/v1beta4 kind: ClusterConfiguration -clusterName: aeon +clusterName: "{{ cluster_name }}" controlPlaneEndpoint: "{{ vip_address }}" networking: podSubnet: "{{ cluster_pod_subnet }}"