Not all installations have an NtpServer configured and if
they don't the ntp service will fail to startup correctly.
This patch makes it so that ntp is only enabled if
the ntp::servers array is greater than 0.
Change-Id: I8417f87ad2a3c1237ebb00ee1232b5313cd45d46
}
}
-include ::ntp
+if count(hiera('ntp::servers')) > 0 {
+ include ::ntp
+}
class { 'nova':
glance_api_servers => join([hiera('glance_protocol'), '://', hiera('glance_host'), ':', hiera('glance_port')]),
if hiera('step') >= 1 {
- include ::ntp
+ if count(hiera('ntp::servers')) > 0 {
+ include ::ntp
+ }
# TODO Galara
class { 'mysql::server':
}
}
}
-include ::ntp
+
+if count(hiera('ntp::servers')) > 0 {
+ include ::ntp
+}
include ::swift
class {'swift::storage::all':
}
}
-include ::ntp
+if count(hiera('ntp::servers')) > 0 {
+ include ::ntp
+}
include ::cinder
include ::cinder::volume