Disable one update action of puppet agent -test

m0nk3yza
m0nk3yza used Ask the Experts™
on
Hi Guys,

One of our customers are having an issue with the contents of /etc/cron.d/* not being processed correctly and have decided to use crontab instead (until the issue is resolved).

However, our PuppetMaster is set to enforce the usage of /etc/cron.d/* and delete any crons under /var/spool/cron/ (once puppet agent -t is run).

Is there a way (perhaps in site.pp) to prevent the deletion of /var/spool/cron/ ?

Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You might try to run your cron jobs as "at jobs", ie when a job has run it reschedules the next run.
Just a workaround to the real problem: cron.d
What happens there which create the problem?

Author

Commented:
Hi Fibo,

There is some corruption in the cron files under /etc/cron.d/

Our developers are trying to resolve this issue.

The customer has placed all their crons in the root crontab, and this seems to work, but each time they run puppet agent -t, it reverts these changes.

So I wanted a temporary work-around to disable just the enforcement of this one directory (/etc/cron.d).

Author

Commented:
The issue remains unresolved.
Can you find somethiung in the Puppet "jobs" which might cause this cron.d reiterated clean-up?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial