Add Vagrantfile for local testing

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola
2023-11-08 13:42:11 -08:00
parent 0cd9ffc17f
commit 9ecdc933ca
10 changed files with 88 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
---
k3s_server_location: "/var/lib/rancher/k3s"
systemd_dir: "/etc/systemd/system"

View File

@@ -87,6 +87,7 @@
when: ansible_hostname != groups['server'][0]
- name: Verify that all server nodes joined
when: (groups['server'] | length) > 1
ansible.builtin.command:
cmd: >
k3s kubectl get nodes -l "node-role.kubernetes.io/control-plane=true" -o=jsonpath="{.items[*].metadata.name}"