Commit Graph

15 Commits

Author SHA1 Message Date
Kohsuke Kawaguchi 530ddb5f1b don't let local modifications from blocking puppet apply.
If a local workspace is modified intentionally or unintentionally,
"git pull" will refuse to overwrite local changes with what's in
the repo, and puppet application will block forever.

It'd be much better to automatically correct this situation,
especially given that we have no ability to detect failures
to apply puppet configuration currently.

This has a risk of overwriting local changes anyone is making
on that box, but one is not supposed to do that anyway!
2013-11-17 08:37:14 -08:00
Kohsuke Kawaguchi 3e3b5685b2 This needs to be run as bash
"exec > >(tee ..)" isn't in /bin/sh
2013-07-22 16:42:46 -07:00
R. Tyler Croy de08dffc42 Actually install modules from librarian-puppet; oops. 2013-06-30 21:26:52 -07:00
R. Tyler Croy 14bd52795f Rework the run script to ensure librarian-puppet is installed
Also including some clever shell tricks to dump output into stdout and the logfile
2013-06-30 19:44:43 -07:00
Kohsuke Kawaguchi 31e96de701 To make it easier to access the latest log file, create a symlink. 2013-04-22 09:27:55 -07:00
R. Tyler Croy 7bda2ff8a4 Update the run script to default to the puppet if it's installed 2012-10-15 23:59:16 -07:00
Kohsuke Kawaguchi ee1d8d49d0 if puppet succeeds, update the time stamp of the file so that we can tell when it run last time 2012-10-11 15:32:02 -07:00
R. Tyler Croy af69bd02aa Make sure we have the puppet/facter gems bootstrapped 2012-08-06 23:54:54 -07:00
R. Tyler Croy 1218ffe575 Prioritize the gem path 2012-08-06 23:31:47 -07:00
R. Tyler Croy fef7812fb9 Touch a file every time a puppet run fails, in theory
I'll come up with how Nagios checks this later. The nagios check should only
waiver between OK and CRITICAL depending on the presence of the file.
2012-01-07 17:32:36 -08:00
R. Tyler Croy 28cc7ae012 Update the script runner to properly update submodules 2011-12-28 14:01:30 -08:00
R. Tyler Croy 4eedc1a6d2 Pretty sure run.sh should be executable 2011-09-05 20:11:33 -07:00
R. Tyler Croy 0e2eb5ee80 Properly pipe to the LOGFILE 2011-09-05 19:41:00 -07:00
R. Tyler Croy 849f6028cc Dump the output from run.sh to a file in $CWD 2011-09-05 18:23:10 -07:00
R. Tyler Croy a7cf41d1cd Add a simple little script runner for our hosts 2011-09-05 17:32:36 -07:00