Commit Graph

15 Commits

Author SHA1 Message Date
Nicholas Malcolm df67c61ba5 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>
2023-11-08 10:23:56 -08:00
Derek Nola 1031ea3ce2 Comply with ansible-lint
Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-11-07 14:00:07 -08:00
Julien DOCHE 88e1a43543 Make sure the reset role can be run with --check
We need to compute what mountpoints would be unmounted even when running with
--check

Signed-off-by: Julien DOCHE <julien.doche@gmail.com>
2021-02-19 00:19:50 +01:00
Julien DOCHE 54629a46bd Change reset deletion order to avoid racecondition
If the k3s binary is launched after the deletion of `/var/lib/rancher/k3s`, k3s
will automatically create this directory. This change deletes the k3s binary
first so that it cannot be called after `/var/lib/rancher/k3s` is deleted

Signed-off-by: Julien DOCHE <julien.doche@gmail.com>
2021-02-19 00:12:51 +01:00
Staf Wagemakers fe7bdf8cda Reorganize the filesystem umount order.
* Clean /var/lib/kubelet before /var/lib/rancher/k3s.
* Umount the filesystem tree in reverse order, to ensure the root
  is umounted last.

Signed-off-by: Staf Wagemakers <staf@wagemakers.be>
2021-01-24 11:04:30 +01:00
jeffspahr cf65304039
Fix umount_with_children typo 2020-08-16 21:26:25 -04:00
jeffspahr 76e1c7838a
Rename umount_with_childeren.yml to umount_with_children.yml 2020-08-16 21:25:28 -04:00
Staf Wagemakers 7bab4cb165 removed typo ':' 2020-07-24 20:21:38 +02:00
Staf Wagemakers e8b0b89d5d use pkill on the full command line instead of killall 2020-07-24 20:15:48 +02:00
Staf Wagemakers afc6c8add7 updated to verify the exit code of killall, only report a change if something is killed 2020-07-24 15:46:07 +02:00
Staf Wagemakers 637e49d75e use lowercase for booleans 2020-07-24 14:16:10 +02:00
Staf Wagemakers e2c4882dba fixed ansible lint error: set -o pipefail added. 2020-07-22 20:48:40 +02:00
Staf Wagemakers 4058ee42e6 killall containerd-shim-runc-v2 added
umount k3s filesystems added
2020-07-22 18:43:06 +02:00
Jeff Geerling ba1b9ae3f1 Fixes #26: Ignore failure in service task in reset playbook so it can run. 2020-05-18 08:35:43 -05:00
Julien DOCHE 62a50429ca contrib/ansible: Add reset role and playbook to reset a node (#1565)
Signed-off-by: Julien DOCHE <julien.doche@gmail.com>
2020-03-25 12:36:28 -07:00