]> gitweb.fluxo.info Git - puppet-puppet.git/commitdiff
Using an if statement for $puppet_agent_section
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Feb 2011 01:26:13 +0000 (23:26 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Feb 2011 01:26:13 +0000 (23:26 -0200)
manifests/puppetd.pp

index 8ee47a1dcdaec4098f03deb7bca10168240d582f..78e02c71d2d79ea8a20e6969173bb5e1066e9a3d 100644 (file)
@@ -31,9 +31,10 @@ class puppetd inherits puppet {
   }
 
   # name of puppet agent section in config file
-  $puppet_agent_section = $puppetversion ? {
-    '0.25.4' => 'puppetd',
-    default  => 'agent',
+  if $puppetversion <= "0.25.4" {
+    $puppet_agent_section = 'puppetd'
+  } else {
+    $puppet_agent_section = 'agent'
   }
 
   # default config file for puppet nodes