8910188786
Add support of using external DNS and NTP in HA mode. Change-Id: I9d741c638c1bd034ec3b451cffa1e70a3fee802a Implements: blueprint external-dns-ntp-support Closes-Bug: 1368514
18 lines
489 B
Puppet
18 lines
489 B
Puppet
notice('MODULAR: timesync.pp')
|
|
|
|
|
|
### To be updated by O.Molchanov ###
|
|
#$server_list = hiera('external_ntp')
|
|
#$ntp_list = regsubst($server_list['ntp_list'], ',', ' ')
|
|
$ntp_list = hiera('master_ip')
|
|
|
|
case $operatingsystem {
|
|
Centos: { $ntp_service = "ntpd" }
|
|
Ubuntu: { $ntp_service = "ntp" }
|
|
}
|
|
|
|
exec { "Initial time sync":
|
|
command => "service $ntp_service stop; killall $ntp_service; ntpdate $ntp_list",
|
|
path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
|
|
}
|