chef-lctp/site-cookbooks/ntp/recipes/default.rb

15 lines
208 B
Ruby

include_recipe "apt"
package 'ntp'
template "/etc/ntp.conf" do
owner "root"
group "root"
source "ntp.conf.erb"
notifies :restart, "service[ntp]"
end
service "ntp" do
action [:enable, :start]
end