From 1777d5b64e49ef2eb834aa6f6cd6c6411f60d76a Mon Sep 17 00:00:00 2001 From: Michal Skalski Date: Tue, 21 Apr 2015 13:14:11 +0200 Subject: 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 --- fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'fuel/build/f_ntp') 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]] } } } - -- cgit 1.2.3-korg