itamae/cookbooks/nginx/kernel.rb

16 lines
292 B
Ruby
Raw Normal View History

2019-03-03 08:50:49 +00:00
# kernel parameters:
%w( 90-nginx.conf ).each do |conf|
remote_file "/etc/sysctl.d/#{conf}" do
owner 'root'
group 'root'
mode '644'
notifies :run, 'execute[sysctl -p /etc/sysctl.d/90-*.conf]'
end
end
execute 'sysctl -p /etc/sysctl.d/90-*.conf' do
action :nothing
end