Add HA option, change to yaml inventory, cleanup

- HA option for multiple server nodes using embedded etcd
- Switch to yaml inventory file for easier editing and combining vars
- Update to full ansible module names
- Change master/node names to server/agent
- Cleanup small linting errors
- Add reboot playbook which staggers reboot to keep HA cluster up
- Move playbooks to playbook directory

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Nicholas Malcolm authored and Derek Nola committed 2023-11-08 10:23:56 -08:00
1 parent 1031ea3ce2
commit df67c61ba5
21 files changed
+126 -86

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
---
- name: Reboot cluster
hosts: k3s_cluster
become: true
gather_facts: true
tasks:
- name: Reboot
ansible.builtin.reboot:
+7
View File
@@ -0,0 +1,7 @@
---
- name: Undo cluster setup
hosts: k3s_cluster
gather_facts: true
become: true
roles:
- role: reset
+21
View File
@@ -0,0 +1,21 @@
---
- name: Cluster prep
hosts: k3s_cluster
gather_facts: true
become: true
roles:
- role: prereq
- role: download
- role: raspberrypi
- name: Setup K3S server
hosts: server
become: true
roles:
- role: k3s/server
- name: Setup K3S agent
hosts: node
become: true
roles:
- role: k3s/agent