パッケージインストール
%w(nginx mysql56-server php54 php54-fpm php54-mysql php54-mbstring php54-xml).each do |pkg|
package pkg do
action :install
end
end
サービス起動、有効化
service "mysqld" do action [:enable, :start] supports :start => true, :stop => true, :restart => true, :reload => true end
設定ファイル作成
template "nginx.conf" do
path "/etc/nginx/nginx.conf"
source "nginx.conf.erb"
owner "root"
group "root"
mode 0644
variables(
:var => "val"
)
notifies :start, 'service[nginx]'
notifies :reload, 'service[nginx]'
end


