t1.micro ã¯ã¹ã¯ãããã¡ã¤ã«ããªãã®ã§æåã«ä½ãã¾ãããã ãããªã㧠chef æµãã¦ãã¨ã¡ã¢ãªã®ã¨ã©ã¼ãåºãããããã¨ããã¾ãã bash 'create swapfile' do user 'root' code <<-EOC dd if=/dev/zero of=/swap.img bs=1M count=2048 && chmod 600 /swap.img mkswap /swap.img EOC only_if { not node[:ec2].nil? and node[:ec2][:instance_type] == 't1.micro' } only_if "test ! -f /swap.img -a `cat /proc/swaps | wc -l` -eq 1" end mount '/dev/null' do # swap file entry for
{{#tags}}- {{label}}
{{/tags}}