diff options
author | Jonas Bjurel <jonas.bjurel@ericsson.com> | 2015-04-23 08:30:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-04-23 08:30:46 +0000 |
commit | e2b2d46756213fde3bca42a49b04e6a1e8792498 (patch) | |
tree | 526502f01cfb71d41a34de0962ca0f9b516238f9 /fuel/build/f_ntp | |
parent | 982f222862a1b1f2773152c535677931334ce60d (diff) | |
parent | 1777d5b64e49ef2eb834aa6f6cd6c6411f60d76a (diff) |
Merge "Allow deployment on Centos 6.5 environment"
Diffstat (limited to 'fuel/build/f_ntp')
-rw-r--r-- | fuel/build/f_ntp/puppet/modules/opnfv/manifests/ntp.pp | 11 |
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]] } } } - |