From: Silvio Rhatto Date: Thu, 17 Feb 2011 01:26:13 +0000 (-0200) Subject: Using an if statement for $puppet_agent_section X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=551edf28237975abbf7e9814c7920be2dba415c7;p=puppet-puppet.git Using an if statement for $puppet_agent_section --- diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp index 8ee47a1..78e02c7 100644 --- a/manifests/puppetd.pp +++ b/manifests/puppetd.pp @@ -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