k3s-ansible/.github/scripts
Timothy Stewart fb6fe7bcd7 feat(prereq): add toggle to disable swap on all cluster nodes
k3s recommends swap be disabled on every node. Add a disable_swap toggle
(default true) to the prereq role that turns swap off now and comments out the
swap entries in /etc/fstab so swap stays off across reboots. The change is
applied uniformly across all k3s_cluster hosts (all-or-nothing) since leaving
swap on for some nodes but not others creates uneven scheduling and latency.

- roles/prereq/defaults/main.yml: add disable_swap: true default
- roles/prereq/tasks/main.yml: idempotent swapoff -a and fstab comment-out block
  gated on disable_swap
- inventory/sample/group_vars/all.yml: document the new sample variable
- README.md: document the disable_swap option
- .github/scripts/test-disable-swap.sh: regression test
- .pre-commit-config.yaml: wire the test into pre-commit

Closes #670
2026-08-05 05:20:30 -05:00
..
test-fixtures fix(ci): configure Ubuntu box prewarming 2026-08-01 12:27:12 -05:00
cleanup-runner-resources.sh fix(ci): skip removed stale Molecule state 2026-08-01 12:27:12 -05:00
collect-runner-diagnostics.sh feat(ci): optimize Molecule VM creation 2026-08-01 12:27:12 -05:00
monitor-runner-resources.sh feat(ci): optimize Molecule VM creation 2026-08-01 12:27:12 -05:00
prepare-vagrant-box-masters.sh test(molecule): update Vagrant boxes to current releases 2026-08-01 19:13:48 -05:00
test-cilium-bgp-manifest.py feat(dependencies): upgrade supported cluster components (#681) 2026-08-02 12:44:50 -05:00
test-cilium-envoy-toggle.py feat(cilium): add toggle to enable or disable the Envoy proxy (#695) 2026-08-05 00:00:39 -05:00
test-cleanup-runner-resources.sh fix(ci): skip removed stale Molecule state 2026-08-01 12:27:12 -05:00
test-default-interface.py fix(flannel): default the interface to each host's default IPv4 interface (#689) 2026-08-03 17:01:50 +00:00
test-disable-swap.sh feat(prereq): add toggle to disable swap on all cluster nodes 2026-08-05 05:20:30 -05:00
test-k3s-server-bootstrap.sh fix(k3s-server): stabilize single-server bootstrap 2026-08-01 12:27:12 -05:00
test-kube-vip-manifest.py feat(dependencies): upgrade supported cluster components (#681) 2026-08-02 12:44:50 -05:00
test-metallb-deploy-condition.py fix(metallb): deploy MetalLB with a non-BGP Cilium CNI (#692) 2026-08-04 01:45:05 -05:00
test-metallb-interfaces.py feat(metallb): add option to limit MetalLB layer2 announcements to specific interfaces (#696) 2026-08-05 02:48:24 -05:00
test-metallb-remote-read.sh feat(dependencies): upgrade supported cluster components (#681) 2026-08-02 12:44:50 -05:00
test-prepare-vagrant-box-masters.sh test(molecule): update Vagrant boxes to current releases 2026-08-01 19:13:48 -05:00
test-unique-hostname-precheck.sh feat(site): fail fast when cluster nodes share a hostname (#697) 2026-08-05 05:14:29 -05:00
vagrant-up-timed.sh feat(ci): optimize Molecule VM creation 2026-08-01 12:27:12 -05:00