How can I create and enable permanent 1GB swap file with salt stack that will work after reboot? salt.states.mount.swap
does not allow to define swap size. Furthermore I need to define swappiness. Currently I do it with echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
Ubuntu – How to enable swap with salt stack
saltstackswapUbuntu
Best Answer
I currently use this in production, works for me.