Hello,
I've configured a simple cron job:
# Cron job for the Puppet agent run (once per hour)
cron { "puppet-run":
command => "/usr/bin/puppet agent --onetime --no-daemonize --no-splay",
minute => fqdn_rand(60),
}
which is applied successfully and yields:
[root@rh65box cron]# crontab -l
# HEADER: This file was autogenerated at Wed Sep 10 14:58:08 +0200 2014 by puppet.
# HEADER: While it can still be managed manually, it is definitely not recommended.
# HEADER: Note particularly that the comments starting with 'Puppet Name' should
# HEADER: not be deleted, as doing so could cause duplicate cron jobs.
# Puppet Name: puppet-run
17 * * * * /usr/bin/puppet agent --onetime --no-daemonize --no-splay
That's exactly what I expected but the cron job is never executed.
If I issue crontab -e and just save without modifying anything, then the cron job is executed.
It looks like crond doesn't pick up the change made by the puppet agent.
Environment is RHEL6.5, puppet 3.6.1.
Any ideas ?
Thanks,
Jerome