summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-08-23Add partial freebsd cron job supportGabriel Filion
The puppet::cron::freebsd class is almost identical to the puppet::cron::openbsd one, but there is no cron job to remove, and the /etc/rc.conf mechanism doesn't exist yet for FreeBSD. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-08-23Move $puppet_default_config_dir to the puppet classGabriel Filion
We'd like to use this variable in the 'puppet' class since we're defining the path to another config file, there. Since puppet::puppetmaster inherits the puppet class, the variable will be defined appropriately. Just to make sure we get the value from the right place, let's also use the qualified variable name. To avoid useless repetitions in the variable name, change the variable name from $puppet_default_config_dir to $default_config_dir. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-08-23Fix ssldir value for FreeBSD configGabriel Filion
The default ssl directory in FreeBSD is /var/puppet/ssl, not /usr/local/etc/puppet/ssl With the previous value, puppet would refuse to run starting from the second run, stating that the certificates do not match. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-08-23Include the OS-specific class for FreeBSDGabriel Filion
The FreeBSD class was previously defined but not included by the puppet class in init.pp Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-08-23FreeBSD: install packages via puppet itselfGabriel Filion
The linux class installs puppet and facter via puppet itself. Chances are that they are already installed, since you need puppet before you can run puppet. _But_, it enables the $puppet_ensure_version and $facter_ensure_version features (forcing the installed version). So let's do the same in FreeBSD. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-07-16Support FreeBSD for the puppet masterGabriel Filion
The puppet master has one additional config file that needs to be placed in a different folder under FreeBSD. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-07-16Support puppet client for FreeBSDGabriel Filion
Some pieces of the puzzle are missing for being able to manage puppet in FreeBSD. * Add a default puppet client config template for FreeBSD * In FreeBSD, puppet.conf is not in /etc/puppet/ so let's provide a value for this variable in init.pp. * The rc script for starting and stopping puppet is not located in /etc/rc.d so let's signify this to Service[puppet] Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-07-07linux is the kernel not the operating systemmh
2011-07-07README typomh
2011-07-07implement setting reports cleanup dir the old waymh
2011-07-07Revert "migrate cleanup_reports to parametrized classes as this makes it ↵mh
much more configurable" This reverts commit 0f4718f062f7419092f69dcdd951339a466a79b8. Unfortuantely due to puppet bug #5517 we currently can't do it that nice so we need to hack around things https://projects.puppetlabs.com/issues/5517
2011-07-07Revert "fix variable naming"mh
This reverts commit 0fd0df89f4a0bd0700b3260a4c40041c59f65660.
2011-07-07fix variable namingmh
2011-07-07migrate cleanup_reports to parametrized classes as this makes it much more ↵mh
configurable
2011-07-07also don't do anything on undef - maybe once puppet will return undef on ↵mh
undefined variables
2011-05-21Fix development environment's modules path.intrigeri
2011-05-07Fix probable typos.intrigeri
2011-05-07Merge remote branch 'immerda/master'intrigeri
2011-05-07Install puppetmaster-common package.intrigeri
This should fix the remaining issues from https://labs.riseup.net/code/issues/2928
2011-05-07Inherit from the right base class.intrigeri
2011-04-22fix problem where you are not on wheezy or sid, but you install a newer ↵Micah Anderson
version through puppetmaster_ensure_version (such as through backports)
2011-04-22Revert "Declared the inclusion of an external package. This should be ↵Micah Anderson
removed for public use or incorporated into the puppet module" This isn't something we want to keep This reverts commit bc4fa29b454691b6c446b2881b4b3ea39d6b8272.
2011-04-22Fix the notify call for puppet service so it will work with passengerKeith aka fugit
2011-04-22Fixed typos in the spelling of passenger in includesKeith aka fugit
2011-04-22added fqdn path call for source puppet.confKeith aka fugit
2011-04-22Declared the inclusion of an external package. This should be removed for ↵Keith aka fugit
public use or incorporated into the puppet module
2011-04-17no need to log to the console as we don't use puppets logging featuremh
2011-04-13removed errant spaceKeith aka fugit
2011-04-13updated allow insatll of puppetmaster on squeeze. This addresses theKeith aka fugit
package diferences.
2011-04-03find not searchmh
2011-04-03fix lastruncheck to be compatible for 2.6.7mh
2011-03-29the % needs to be double-escaped so puppet doesn't complain like this:Micah Anderson
Mar 29 14:08:23 puppetmaster puppet-master[26637]: Unrecognised escape sequence '\%' in file /etc/puppet/modules/puppet/manifests/cron/linux.pp at line 17
2011-03-28percent is magic in crontabs and needs to be escapedMatt Taggart
2011-03-28need to escape the $ in the variablesMicah Anderson
2011-03-28add missing redirection to /dev/null for the first puppet restart: #2690Micah Anderson
2011-03-28update cronjob to capture the return code output as suggested by LeLutin in ↵Micah Anderson
https://labs.riseup.net/code/issues/2819
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-20treat case where host is not in stored configs so farmh
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.