summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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