From 51865fd8bfacc87e1ab85d560eb4f182a5d9113c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 19 Feb 2011 19:14:12 -0200 Subject: Enhancing check-puppetd.sh --- manifests/puppetd.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'manifests/puppetd.pp') diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp index 66edf43..7f00241 100644 --- a/manifests/puppetd.pp +++ b/manifests/puppetd.pp @@ -32,9 +32,9 @@ class puppetd inherits puppet { # name of puppet agent section in config file if $puppetversion <= "0.25.4" { - $puppet_agent_section = 'puppetd' + $puppet_agent_name = 'puppetd' } else { - $puppet_agent_section = 'agent' + $puppet_agent_name = 'agent' } # default config file for puppet nodes @@ -59,11 +59,11 @@ class puppetd inherits puppet { } file { "/usr/local/sbin/check-puppetd.sh": - source => "puppet://$server/modules/puppet/check-puppetd.sh", - owner => "puppet", - group => "puppet", - mode => 0755, - ensure => present, + content => template("puppet/check-puppetd.sh.erb"), + owner => "puppet", + group => "puppet", + mode => 0755, + ensure => present, } cron { "puppetd-check": -- cgit v1.2.3