summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-16 21:26:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-16 21:26:28 -0200
commit911337e91c6a34d9fca8ba9095b8c3864571cc5b (patch)
tree7fc718159f96f4d997e346a21e876ac25e70be64 /manifests
parent7b164d8ea701baf67b4b7bdf530002c2871ec151 (diff)
downloadpuppet-puppet-911337e91c6a34d9fca8ba9095b8c3864571cc5b.tar.gz
puppet-puppet-911337e91c6a34d9fca8ba9095b8c3864571cc5b.tar.bz2
Setting name of puppet agent section in config file
Diffstat (limited to 'manifests')
-rw-r--r--manifests/puppetd.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp
index 0cd7434..090aeaa 100644
--- a/manifests/puppetd.pp
+++ b/manifests/puppetd.pp
@@ -30,6 +30,12 @@ class puppetd inherits puppet {
require => [ Package["puppet"], File["/etc/default/puppet"] ],
}
+ # name of puppet agent section in config file
+ $puppet_agent_section = $lsbdistcodename ? {
+ 'lenny','lucid' => 'puppetd',
+ default => 'agent',
+ }
+
# default config file for puppet nodes
if ($puppetmasterd_present != true) or ($main_master != true) {
file { "/etc/puppet/puppet.conf":