From 551edf28237975abbf7e9814c7920be2dba415c7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 16 Feb 2011 23:26:13 -0200 Subject: Using an if statement for $puppet_agent_section --- manifests/puppetd.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- cgit v1.2.3