X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/81f0aa67e3c0e400457194690888dfca3f213463..45dde9418dd342bb1a632d82559201c0b3becf1a:/cookbooks/ntp/recipes/default.rb diff --git a/cookbooks/ntp/recipes/default.rb b/cookbooks/ntp/recipes/default.rb index 0cd8dea24..66acd1991 100644 --- a/cookbooks/ntp/recipes/default.rb +++ b/cookbooks/ntp/recipes/default.rb @@ -1,9 +1,9 @@ # -# Cookbook Name:: ntp +# Cookbook:: ntp # Recipe:: default # -# Copyright 2010, OpenStreetMap Foundation. -# Copyright 2009, Opscode, Inc +# Copyright:: 2010, OpenStreetMap Foundation. +# Copyright:: 2009, Opscode, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,28 +17,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -service "ntp" do - action [:stop, :disable] -end - -package "ntp" do - action :purge -end - -package "ntpdate" do - action :purge -end - -if File.directory?("/etc/munin/plugins") - Dir.new("/etc/munin/plugins").each do |plugin| - next unless plugin.match?(/^ntp_/) - - munin_plugin plugin do - action :delete - end - end -end - package %w[ chrony tzdata @@ -66,6 +44,10 @@ template "/etc/chrony/chrony.conf" do notifies :restart, "service[chrony]" end +service "systemd-timesyncd" do + action [:stop, :disable] +end + service "chrony" do action [:enable, :start] end