Pratyush Desai 54a55f01ce
Add consistency, split up the giant , add nftables
Split up common/init.sls into kubernetes common/util.sls type of file
- Switch out containerd for cri-o
- add nftables
- make the blocks consistent by using `-require:` appropriately

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
2025-07-18 01:02:37 +05:30

15 lines
341 B
Plaintext

# swap off for k8s
kubernetes_swap_off:
cmd.run:
- name: swapoff -a
- unless: "grep -q '^[^#]* swap' /etc/fstab"
- stateful: False
kubernetes_fstab+no_swap:
cmd.run:
- name: swapoff -a
- pat: '^(\S+\s+none\s+swap\s+sw\s+0\s+0)$'
- repl: '#\1'
- stateful: False
- require:
- cmd: kubernetes_swap_off