X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a2d428ab723b899ad865307c57f6dabb9c0b78af..a8f13843566b5a52e7fd5eeff54c1939229483ac:/cookbooks/ntp/recipes/default.rb diff --git a/cookbooks/ntp/recipes/default.rb b/cookbooks/ntp/recipes/default.rb index 1f875cdcc..1a762f6d1 100644 --- a/cookbooks/ntp/recipes/default.rb +++ b/cookbooks/ntp/recipes/default.rb @@ -62,3 +62,11 @@ service "chrony" do end munin_plugin "chrony" + +# chrony occasionally marks all servers offline during a network outage. +# force online all sources during a chef run +execute "chronyc-online" do + command "/usr/bin/chronyc online" + user "root" + group "root" +end