summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-03-22fix syntax error from previous commitMicah Anderson
2011-03-22add debian-specific puppetmaster require parameter package overrideMicah Anderson
2011-03-22minor formatting fix for standardizationMicah Anderson
2011-03-15instead of using $RANDOM, which isn't POSIX, we get even more esoteric by ↵Micah Anderson
pulling 2 bytes from /dev/urandom, giving them to od which turns them into unsigned decimals, and then we bitshift the output, either by 5 or 6 depending on if we are replacing $RANDOM/1000*60 (right sift by 5 is the same as dividing by 2^N, or /32) or $RANDOM/2000*60 (range of [0,983]) Thanks to dkg for working through this with me, not only did he come up with it faster than a human brain should be able to function, he had the patience to explain all the individual pieces that I did not understand to me.
2011-03-15change the cronjob so that the failure to find any ↵Micah Anderson
(^err:|^alert:|^emerg:|^crit:) in the output from the puppet run doesn't leave us with a '1' return code from grep. On Debian Squeeze systems, this problem would result in cron reporting that the cron command failed with an exit status 1: /USR/SBIN/CRON[24107]: (CRON) error (grandchild #24108 failed with exit status 1) This was because grep returns a '1' if it fails to find a match. We don't want the failure to find failure messages to produce a failure, so this checks the return code of the grep and fixes it to be '0' if there were no such failure log messages. This is a bit ugly, if you ask me. We are already, unfortunately, swallowing the puppetd return code with the grep. It seems like these sorts of log messages should be retrieved via reports, logcheck, or something other than this grep of the output of the cronjob.
2011-03-01the debian-specific case doesn't work for squeeze, so re-factor the way it isMicah Anderson
done to set a flag so that squeeze has the service stopped, but lenny does not
2011-02-28debian's puppet depends on puppet-common, but if you were to setMicah Anderson
$puppet_ensure_version to a backported version and your pinning was setup so that you dont pull any packages unless explicit (I believe this is the default), then you will end up seeing things like this: The following packages have unmet dependencies: puppet: Depends: puppet-common (= 2.6.2-4~bpo50+1) but 2.6.2-1~bpo50+1 is to be installed E: Broken packages at /etc/puppet/modules/puppet/manifests/linux.pp:6 this commit adds the $puppet_ensure_version test in debian.pp to make sure that the puppet-common package is also following this request
2011-02-16remove duplicated hasstatus parameter on Service[puppet]Micah Anderson
2011-02-14Revert "debian's puppet initscript has status functionality", this seems to ↵Micah Anderson
have been a mistake in a merge commit This reverts commit bb8ede5cfa0bdbdcc0244a590e6453f16d815cb6.
2011-02-11fact needs to check now for $operatingsystem, not $kernel, in order to ↵Micah Anderson
distinguish between different linux distros
2011-02-11fix name of cronjob for generic linuxMicah Anderson
2011-02-11this cleanup isn't a good idea for the other linux people who are actually ↵Micah Anderson
using the filename puppetd.cron
2011-02-11make a puppet::cron::debian class that includes the override of the ↵Micah Anderson
/etc/cron.d/puppetd.cron file resource and move the override from manifests/debian.pp. /etc/cron.d/puppetd.cron is not a valid cronjob according to the run-parts system that Debian uses to decide what is valid, as a result if you were to 'include puppet::cron' in your manifests on a debian/debian-derived system, then a cronjob would be created that would never be executed.
2011-01-17fix location of puppet reports in cronjob that is run daily to cleanup ↵Micah Anderson
reports on a monthly basis (by default)
2011-01-11on debian, the default /etc/default/puppet file has "START=no", the default ↵Micah Anderson
that is shipped with the puppet module had it set to "START=yes". This commit reverts that to the packaged default. It would probably be better not to ship the exact duplicate of the package's /etc/default/puppet, but rather do something else, when things that are other than the default need to be changed.
2011-01-11fix misplaced closing curly brace for case statementMicah Anderson
2011-01-11fix dependency error for the /etc/cron.d/puppetlast.cronMicah Anderson
2011-01-11clarify how storeconfigs are setup in the READMEMicah Anderson
2011-01-10update README to reflect the module pre-requirements needed for ↵Micah Anderson
puppet::puppetmaster::storeconfigs
2011-01-10fix the bc dependency (closes: #2690)Micah Anderson
this is done by removing the hacky `if !defined` on the bc package by removing the package dependency altogether and replacing the places where it is used by shell built-in math functions. this is a follow-up commit to 1455b1f9a55cdffc582fd93fa0bc5c016585760c
2011-01-10Fix up puppet/puppetmaster status method for Debian Squeeze and Sid, ↵Micah Anderson
updating my previous commits with the fixes from LeLutin (closes: #2693)
2011-01-10add to puppet::puppetmaster::debian a file resource to manage the ↵Micah Anderson
/etc/default/puppetmaster file shipped with the debian package
2011-01-10add information about nginx/mongrel modules that are needed for ↵Micah Anderson
$puppetmaster_mode = cluster
2011-01-10add a $use_munin variable to give a knob to turn on/off munin graphing.Micah Anderson
add two new munin graphs for puppetmaster: one to graph the memory usage of the running puppetmasters; and one to graph the average compile time
2010-12-14README changes: . Remove depends on 'bc' module requirement . Language ↵Micah Anderson
fixes, and clarification of $puppet_crontime cron field . add clientbucket_cleanup . note that the passenger module is a needed dependency if you set that variable . note dependency for storedconfigs
2010-12-14Merge remote branch 'immerda/master' into immerdaMicah Anderson
Conflicts: manifests/puppetmaster/checklastrun.pp manifests/puppetmaster/checklastrun/disable.pp
2010-12-14add debian-specific puppetmaster service resource overrides, if not running ↵Micah Anderson
passenger mode
2010-12-07convert timestamp first to a string to be sure we handle all the same waymh
2010-12-06looks like last_compile can be nil sometimesmh
2010-11-29update READMEmh
2010-11-29rather use last_compile than last updatemh
2010-11-29by default runy it only once dailymh
2010-11-29replace puppetlast with much more improved versionmh
2010-11-28add the possibility to clean the individual node client buckets.Micah Anderson
this tidy is quite conservative, only cleaning files that are older than one month. this seems long enough to be able to recover from a disaster, yet still keep things from filling up the disk.
2010-11-28default client puppet.conf changes:Micah Anderson
. add a default production environment . add a development environmnet . due to deprecation notice in 2.6, change the [puppetd] section header to [agent] . remove the default server puppet.glei.ch, the default server should just be puppet.$fqdn . remove some option comments that aren't being used . remove logdest as this isn't a valid option anymore, and was set to the default . replace the templatedir full path with the $vardir path. . add the module path Conflicts: files/client/puppet.conf
2010-11-28debian's puppet initscript has status functionalityMicah Anderson
Conflicts: manifests/cron/base.pp manifests/debian.pp
2010-11-28add site-puppet cron.d/puppet sourceMicah Anderson
2010-11-28I've removed the pre-requirement that you need to have the 'bc' moduleMicah Anderson
installed. It seems a little silly to have a hard-coded dependency on a module that simply installs one package. I replaced it with a test to see if the package has been defined elsewhere, and if not then it installs it, allowing those who wish to continue to do this to have no change. I also provide a mechanism to specify the version, if desired. Conflicts: manifests/linux.pp
2010-11-28Fix whitespace and coding standards to use standard formatting styles (I ↵Micah Anderson
believe that this Closes #2353)
2010-10-21stage lastcheckmh
2010-09-15fix some issues with cron enabling/service disablingmh
2010-08-31factsync is a deprecated option - pluginsync is enoughmh
2010-08-19this is not anymore needed on 2.6mh
2010-08-19turn plugin and fact sync onmh
As we use custom facts and plugins in our modules I think it's safe to turn them on by default.
2010-08-19we set that below where it is the more appropriate placemh
2010-08-19work around a 2.6 issuemh
2010-08-19fix stupid typomh
2010-08-18puppet binary is in binmh
2010-08-17enable possibility to enforce puppet http_compressionmh
2010-08-17fix pattern for 2.6 openbsdmh