[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r681: Fix ntpd service name for CentOS 7.
Jeff Licquia
licquia at linuxfoundation.org
Mon Sep 19 13:52:33 UTC 2016
------------------------------------------------------------
revno: 681
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Mon 2016-09-19 09:52:33 -0400
message:
Fix ntpd service name for CentOS 7.
modified:
modules/ntp/manifests/init.pp
-------------- next part --------------
=== modified file 'modules/ntp/manifests/init.pp'
--- a/modules/ntp/manifests/init.pp 2014-02-12 17:17:27 +0000
+++ b/modules/ntp/manifests/init.pp 2016-09-19 13:52:33 +0000
@@ -1,5 +1,10 @@
class ntp {
+ $ntpservice = "$operatingsystem-$operatingsystemrelease" ? {
+ /^CentOS-7/ => 'ntpd',
+ default => 'ntp',
+ }
+
package { 'ntp': ensure => present }
file { '/etc/ntp.conf':
@@ -8,7 +13,7 @@
notify => Service['ntp'],
}
- service { 'ntp':
+ service { "$ntpservice":
ensure => running,
hasstatus => true,
hasrestart => true,
More information about the lsb-messages
mailing list