k3s-ansible/.github
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
..
ISSUE_TEMPLATE docs(agent): improve repository guidance [skip ci] (#685) 2026-08-02 16:31:40 -05:00
scripts feat(prereq): add toggle to disable swap on all cluster nodes 2026-08-05 05:20:30 -05:00
workflows chore(deps): apply dependency updates in one combined change (#694) 2026-08-04 17:54:58 -05:00
FUNDING.yml chore(lint): fixed yaml lint 2022-04-02 11:48:37 -05:00
PULL_REQUEST_TEMPLATE.md docs(agent): improve repository guidance [skip ci] (#685) 2026-08-02 16:31:40 -05:00
actionlint.yaml ci(runner): restore isolated Molecule CI 2026-08-01 12:27:12 -05:00
copilot-instructions.md docs(agent): improve repository guidance [skip ci] (#685) 2026-08-02 16:31:40 -05:00
dependabot.yml feat(dependabot): Added docker docker and github actions (#422) 2024-01-26 16:19:42 +00:00
download-boxes.sh fix(ci): make Vagrant box cache version-aware 2026-08-01 12:27:12 -05:00
test-download-boxes.sh test(molecule): update Vagrant boxes to current releases 2026-08-01 19:13:48 -05:00
vagrant-boxes.lock test(molecule): update Vagrant boxes to current releases 2026-08-01 19:13:48 -05:00