summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-16 23:26:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-16 23:26:13 -0200
commit551edf28237975abbf7e9814c7920be2dba415c7 (patch)
tree9a8ffb9013b69680f6af02b294c937106473f947
parent30c9e2678d538a3db58f0ff3066cccced0b9cc33 (diff)
downloadpuppet-puppet-551edf28237975abbf7e9814c7920be2dba415c7.tar.gz
puppet-puppet-551edf28237975abbf7e9814c7920be2dba415c7.tar.bz2
Using an if statement for $puppet_agent_section
-rw-r--r--manifests/puppetd.pp7
1 files 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