Merge "Remove ntpdate references"

This commit is contained in:
Zuul 2021-05-05 17:13:38 +00:00 committed by Gerrit Code Review
commit db12489a6c
1 changed files with 2 additions and 15 deletions

View File

@ -54,11 +54,6 @@ class packstack::chrony ()
name => 'chrony',
}
package { 'ntpdate':
ensure => 'installed',
name => 'ntpdate',
}
file { 'chrony_conf':
ensure => file,
path => '/etc/chrony.conf',
@ -72,14 +67,8 @@ class packstack::chrony ()
onlyif => 'systemctl status chronyd.service'
}
# for cases where ntpd is running instead of default chronyd
service { 'ntpd':
ensure => stopped,
enable => false,
}
exec { 'ntpdate':
command => "/usr/sbin/ntpdate ${cfg_ntp_servers}",
command => "/usr/bin/chronyc makestep",
tries => 3,
}
@ -92,10 +81,8 @@ class packstack::chrony ()
}
Package['chrony']
-> Package['ntpdate']
-> File['chrony_conf']
-> Exec['stop-chronyd']
-> Service['ntpd']
-> Exec['ntpdate']
-> Service['chronyd']
-> Exec['ntpdate']
}