diff options
-rw-r--r-- | files/cron.d/puppetd | 1 | ||||
-rw-r--r-- | manifests/init.pp | 9 |
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': |