]> gitweb.fluxo.info Git - puppet-puppet.git/commitdiff
Using $puppetversion instead of $lsbdistcodename to determine puppet agent section...
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Feb 2011 00:45:38 +0000 (22:45 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Feb 2011 00:45:38 +0000 (22:45 -0200)
manifests/puppetd.pp

index eb4d420f52aadb587d14bd3de45f01994958628c..8ee47a1dcdaec4098f03deb7bca10168240d582f 100644 (file)
@@ -31,10 +31,9 @@ class puppetd inherits puppet {
   }
 
   # name of puppet agent section in config file
-  $puppet_agent_section = $lsbdistcodename ? {
-    'lenny' => 'puppetd',
-    'lucid' => 'puppetd',
-    default => 'agent',
+  $puppet_agent_section = $puppetversion ? {
+    '0.25.4' => 'puppetd',
+    default  => 'agent',
   }
 
   # default config file for puppet nodes