Created
March 18, 2014 03:32
-
-
Save andredumas/9613094 to your computer and use it in GitHub Desktop.
Chef port of the swap puppet manifest (https://gist.github.com/andredumas/9612937)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute "mkswap" do | |
command "dd if=/dev/zero of=/var/swapfile bs=1024 count=$((1226*1024)); mkswap /var/swapfile" | |
creates "/var/swapfile" | |
umask 0077 | |
action :run | |
end | |
mount "none" do | |
action :enable | |
device "/var/swapfile" | |
fstype "swap" | |
options "sw" | |
end | |
execute "swapon -a" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment