X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/81f0aa67e3c0e400457194690888dfca3f213463..2b424bece10f19c99cc1f97b6df05e1f5dfc92be:/cookbooks/ntp/recipes/default.rb diff --git a/cookbooks/ntp/recipes/default.rb b/cookbooks/ntp/recipes/default.rb index 0cd8dea24..ff5a40ae7 100644 --- a/cookbooks/ntp/recipes/default.rb +++ b/cookbooks/ntp/recipes/default.rb @@ -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