Added daily cron job which checks that puppetd is running into puppet client classes.
This commit is contained in:
parent
fd4ad43046
commit
d82884fc87
1 changed files with 13 additions and 1 deletions
|
@ -60,6 +60,14 @@ class puppet::client {
|
|||
}
|
||||
}
|
||||
|
||||
cron { "puppet-check":
|
||||
ensure => present,
|
||||
command => "pgrep -f 'puppetd' > /dev/null || echo 'puppetd not running on host ${fqdn}'",
|
||||
user => root,
|
||||
hour => 5,
|
||||
minute => 0,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -74,6 +82,10 @@ class puppet::manual inherits puppet::client {
|
|||
enable => false,
|
||||
}
|
||||
|
||||
Cron["puppet-check"] {
|
||||
ensure => absent,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue