summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-02-29 15:33:36 +0000
committermh <mh@immerda.ch>2008-02-29 15:33:36 +0000
commit283692945525ef783ea17cd92acecca92bb2c0e8 (patch)
tree36229f4ddff0b0c8c8a5dda46b15271f78450cc7
parentc7e0334a04e02f5202380c05b5ed48d06b541337 (diff)
added cron for puppet
-rw-r--r--files/cron.d/puppetd1
-rw-r--r--manifests/init.pp9
2 files changed, 10 insertions, 0 deletions
diff --git a/files/cron.d/puppetd b/files/cron.d/puppetd
new file mode 100644
index 0000000..f3aafb1
--- /dev/null
+++ b/files/cron.d/puppetd
@@ -0,0 +1 @@
+0 * * * * root /bin/ps ax | /bin/grep -v grep | /bin/grep puppetd > /dev/null || /etc/init.d/puppetd restart
diff --git a/manifests/init.pp b/manifests/init.pp
index 556486b..959fa61 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -36,6 +36,15 @@ class puppet::linux {
hasstatus => true,
hasrestart => true,
}
+
+ file{'/etc/cron.d/puppetd':
+ owner => root,
+ group => 0,
+ mode => 0644,
+ source => [ "puppet://$server/puppet/conf.d/puppetd.$operatingsystem",
+ "puppet://$server/puppet/conf.d/puppetd"
+ ],
+ }
}
class puppet::openbsd {
service{'puppet':