Solved

Disable one update action of puppet agent -test

Posted on 2014-03-06
6
246 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
Comment Utility
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
Comment Utility
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
Comment Utility
The issue remains unresolved.
0
 
LVL 29

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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 …

762 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

10 Experts available now in Live!

Get 1:1 Help Now