Solved

Disable one update action of puppet agent -test

Posted on 2014-03-06
6
251 Views
Last Modified: 2014-04-08
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.
0
Comment
Question by:m0nk3yza
  • 2
  • 2
6 Comments
 
LVL 29

Accepted Solution

by:
fibo earned 500 total points
ID: 39971840
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?
0
 
LVL 1

Author Comment

by:m0nk3yza
ID: 39983985
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).
0
 
LVL 1

Author Closing Comment

by:m0nk3yza
ID: 39983991
The issue remains unresolved.
0
 
LVL 29

Expert Comment

by:fibo
ID: 39985466
Can you find somethiung in the Puppet "jobs" which might cause this cron.d reiterated clean-up?
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now