summaryrefslogtreecommitdiff
path: root/manifests/puppetd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetd.pp')
-rw-r--r--manifests/puppetd.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp
index d310ab9..f7dab0f 100644
--- a/manifests/puppetd.pp
+++ b/manifests/puppetd.pp
@@ -38,4 +38,21 @@ class puppetd inherits puppet {
ensure => absent,
require => Service["puppet"],
}
+
+ file { "/usr/local/sbin/check-puppetd.sh":
+ source => "puppet://$server/modules/puppet/check-puppetd.sh",
+ owner => "puppet",
+ group => "puppet",
+ mode => 0755,
+ ensure => present,
+ }
+
+ cron { "puppetd-check":
+ command => "/usr/local/sbin/check-puppetd.sh &> /dev/null",
+ user => root,
+ hour => "*/1",
+ minute => "0",
+ require => File["/usr/local/sbin/check-puppetd.sh"],
+ ensure => present,
+ }
}