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:
Oleksiy Molchanov 2015-08-10 17:24:25 +03:00
parent 1d8660d032
commit a4b5e9bb45

View File

@ -5,7 +5,7 @@ $ntp_servers = hiera_array('ntp_servers', [$management_vrouter_vip])
$nodes_hash = hiera('nodes', {})
$roles = node_roles($nodes_hash, hiera('uid'))
if !(member($roles, 'controller') or member($roles, 'primary-controller')) {
class { 'ntp':
servers => $ntp_servers,
service_ensure => 'running',
@ -22,3 +22,4 @@ tweaks::ubuntu_service_override { 'ntpd':
package_name => $ntp::params::package_name,
service_name => $ntp::params::service_name,
}
}