[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r509: Adjust to renaming of Puppet agent service on recent Fedora.

Jeff Licquia licquia at linuxfoundation.org
Tue Aug 6 22:05:19 UTC 2013


------------------------------------------------------------
revno: 509
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Tue 2013-08-06 18:05:19 -0400
message:
  Adjust to renaming of Puppet agent service on recent Fedora.
modified:
  modules/puppet/manifests/init.pp
-------------- next part --------------
=== modified file 'modules/puppet/manifests/init.pp'
--- a/modules/puppet/manifests/init.pp	2013-05-14 22:42:55 +0000
+++ b/modules/puppet/manifests/init.pp	2013-08-06 22:05:19 +0000
@@ -21,6 +21,11 @@
         default         => present,
     }
 
+    $puppetservice = "${operatingsystem}-${operatingsystemrelease}" ? {
+        /^Fedora-/ => 'puppetagent',
+        default    => 'puppet',
+    }
+
     file { 'puppet.conf':
         name => '/etc/puppet/puppet.conf',
         source => 'puppet:///modules/puppet/puppet.conf',
@@ -87,7 +92,7 @@
         }
     }
 
-    service { 'puppet':
+    service { $puppetservice:
         enable      => true,
         require     => Package['puppet'],
     }



More information about the lsb-messages mailing list