summaryrefslogtreecommitdiffstats
path: root/fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2015-04-21 13:14:11 +0200
committerMichal Skalski <mskalski@mirantis.com>2015-04-21 13:22:41 +0200
commit1777d5b64e49ef2eb834aa6f6cd6c6411f60d76a (patch)
tree3c2d55156df9ad82cbe25e71435742d9c32374b5 /fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp
parente1d29739ccbc6efc20f400636a211dae0e75bff4 (diff)
Allow deployment on Centos 6.5 environment
Modify Fuel@OPNFV puppet manifest to allow deployment on CentOS 6.5 environment. Add installation of docker-io centos package on controller nodes. Change-Id: I76cdd086607f279f46d827558c878b7be0d8314f JIRA: BGS-36 Signed-off-by: Michal Skalski <mskalski@mirantis.com>
Diffstat (limited to 'fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp')
-rw-r--r--fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp b/fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp
index 8180e3d..c5dce1b 100644
--- a/fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp
+++ b/fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp
@@ -31,6 +31,15 @@ class opnfv::ntp(
$file='/etc/ntp.conf'
) {
+ case $::operatingsystem {
+ centos, redhat: {
+ $service_name = 'ntpd'
+ }
+ debian, ubuntu: {
+ $service_name = 'ntp'
+ }
+ }
+
if $::fuel_settings['role'] {
if ($::fuel_settings['opnfv'] and
$::fuel_settings['opnfv']['ntp']) {
@@ -63,9 +72,9 @@ class opnfv::ntp(
service { 'ntp':
ensure => running,
+ name => $service_name,
enable => true,
require => [ Package['ntp'], File[$file]]
}
}
}
-