Merge "Update NTP manifest to ensure controller syncs from mate if no servers"

This commit is contained in:
Zuul 2018-06-27 16:01:30 +00:00 committed by Gerrit Code Review
commit a96b44435e

View File

@ -26,7 +26,7 @@ class platform::ntp (
exec { 'start-ntpdate':
command => '/usr/bin/systemctl start ntpdate.service',
returns => [ 0, 1 ],
onlyif => "grep -q '^server' /etc/ntp.conf",
onlyif => "test ! -f /etc/platform/simplex || grep -q '^server' /etc/ntp.conf",
}
exec { 'ntpdate-systemd-daemon-reload':