Restrict ntp-client on controller nodes
NTP-client task shouldn't be run on controller multirole nodes Change-Id: I54defe421ded251ad13b665b6fd1843600a517a7 Closes-Bug: 1481627
This commit is contained in:
parent
1d8660d032
commit
a4b5e9bb45
@ -5,20 +5,21 @@ $ntp_servers = hiera_array('ntp_servers', [$management_vrouter_vip])
|
|||||||
$nodes_hash = hiera('nodes', {})
|
$nodes_hash = hiera('nodes', {})
|
||||||
$roles = node_roles($nodes_hash, hiera('uid'))
|
$roles = node_roles($nodes_hash, hiera('uid'))
|
||||||
|
|
||||||
|
if !(member($roles, 'controller') or member($roles, 'primary-controller')) {
|
||||||
|
class { 'ntp':
|
||||||
|
servers => $ntp_servers,
|
||||||
|
service_ensure => 'running',
|
||||||
|
service_enable => true,
|
||||||
|
iburst_enable => true,
|
||||||
|
tinker => true,
|
||||||
|
panic => '0',
|
||||||
|
stepout => '5',
|
||||||
|
minpoll => '3',
|
||||||
|
}
|
||||||
|
|
||||||
class { 'ntp':
|
include ntp::params
|
||||||
servers => $ntp_servers,
|
tweaks::ubuntu_service_override { 'ntpd':
|
||||||
service_ensure => 'running',
|
package_name => $ntp::params::package_name,
|
||||||
service_enable => true,
|
service_name => $ntp::params::service_name,
|
||||||
iburst_enable => true,
|
}
|
||||||
tinker => true,
|
|
||||||
panic => '0',
|
|
||||||
stepout => '5',
|
|
||||||
minpoll => '3',
|
|
||||||
}
|
|
||||||
|
|
||||||
include ntp::params
|
|
||||||
tweaks::ubuntu_service_override { 'ntpd':
|
|
||||||
package_name => $ntp::params::package_name,
|
|
||||||
service_name => $ntp::params::service_name,
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user