Solved

Disable one update action of puppet agent -test

Posted on 2014-03-06
6
255 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

14 Experts available now in Live!

Get 1:1 Help Now