Skip to content

Instantly share code, notes, and snippets.

@mjmac
Created March 8, 2010 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjmac/325788 to your computer and use it in GitHub Desktop.
Save mjmac/325788 to your computer and use it in GitHub Desktop.
case node[:platform]
when "ubuntu","debian"
package "ntpdate" do
action :install
end
end
package "ntp" do
action :install
end
service node[:ntp][:service] do
action :start
end
template "/etc/ntp.conf" do
source "ntp.conf.erb"
owner "root"
group "root"
mode 0644
notifies :restart, resources(:service => node[:ntp][:service])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment