summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-18Fix site path in passenger classJerome Charaoui
2013-07-27Merge remote-tracking branch 'intrigeri/bugfix/have_puppetlast_cronjob_run'Gabriel Filion
2013-05-20follow new naming conventionmh
2013-05-01checklastrun cronjob: only pass output through in imperfect situations.intrigeri
That is, silence it (and avoid nagging the administrators with email) when all hosts are OK, and puppetlast exits with return code 0.
2013-04-23Install puppetlast cronjob under a usable name.intrigeri
That is, install it as /etc/cron.d/puppetlast, and cleanup the old buggy /etc/cron.d/puppetlast.cron. As cron(8) says about /etc/cron.d/: "For example, any file containing dots will be ignored."
2013-02-27Fix typo.Jerome Charaoui
2013-01-02Class hierarchy is off and passenger apt repository is always installedGabriel Filion
also, the $puppet_majorversion variable was empty because it was not fully qualified. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2013-01-02Merge branch 'puppet_cron'Gabriel Filion
Conflicts: manifests/cron.pp manifests/linux.pp take the changes from puppet_cron
2013-01-02Make all linux distributions use the same path for the cron fileGabriel Filion
This simplifies the hierarchy and fixes the problem that going from puppet::cron to puppet under debian doesn't remove the cron file. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2013-01-02cron service dependancy has some errors and misses the cron classGabriel Filion
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2013-01-02added service dependency for cronpuppet_cronvarac
2013-01-02linted cron/linux.ppvarac
2013-01-02removed unnesseccary stuff for absent puppetd.cronvarac
2013-01-02linted linux.ppvarac
2013-01-02linted checklastrun.ppvarac
2013-01-02Merge branch 'master' of ssh://labs.riseup.net/shared-puppetvarac
2012-10-11Merge branch 'master' of ssh://code.leap.se/puppet_puppetvarac
2012-10-11file extension .sh is not recognized by run-partsvarac
2012-10-02modified lastruncheck to run under v2.7.x, see ↵varac
github.com/cafuego/check_puppetmaster
2012-09-25requirements to install puppetmaster with passengervarac
2012-08-22implement fixes from #3514Micah Anderson
2012-08-22switch to $::operatingsystem as suggested by ng in ↵Micah Anderson
https://labs.riseup.net/code/issues/4029
2012-08-22Merge branch 'leap' into tmpMicah Anderson
2012-08-22switch to $::operatingsystem as suggested by ng in ↵Micah Anderson
https://labs.riseup.net/code/issues/4029
2012-08-22Merge branch 'master' of ssh://leap.se:4422/puppet_puppetMicah Anderson
Conflicts: manifests/puppetmaster/passenger.pp
2012-08-22Merge remote-tracking branch 'riseup/master'Micah Anderson
Conflicts: manifests/puppetmaster/debian.pp manifests/puppetmaster/linux.pp manifests/puppetmaster/package/debian.pp
2012-08-14forgot closing bracevarac
2012-08-14debian specific config.ru location for use with puppetmaster-passenger packagevarac
2012-08-10Fix puppet attempting to change the puppet service from 'stopped' to running ↵Micah Anderson
on each run: notice: /Stage[main]/Puppet::Base/Service[puppet]/ensure: ensure changed 'stopped' to 'running' When running in cron mode, you do not want the puppet service enabled, nor do you want it 'running'. When enabling the cron mode, the first part of puppet::cron::base does a Service override on the puppet service to set enable => false. That is a good thing, but all it does is make the service setup so it wont be run on boot. Unfortunately, the puppet service definition also has a 'ensure => running' which does an /etc/init.d/puppet status and then starts the service if it is not running. In a cron-only setup, the 'status' command results in a failure, because the daemon is not running, and then puppet attempts to start it, which goes nowhere because the /etc/default/puppet is configured not to start. So, looking further at puppet::cron::base we see there is a case switch, testing on operatingsystem and if its debian/ubuntu (or openbsd) it falls out of the case. If it is not one of those, it continues and does a test to see if the version of puppet is 2.6 and if so then it does an additional puppet Service override to set ensure=> stopped which keeps the service from being checked to see if it is running, and if it is not starting it. So to fix this, we remove debian/ubuntu from the case, so it will continue through and then we change the $puppet_majorversion test to look for anything greater than or equal to '2.6', since 2.7 and later are also versions we want this to work with. After this change, we no longer get the attempt to restart puppet on every run.
2012-08-10Fix puppet attempting to change the puppet service from 'stopped' to running ↵Micah Anderson
on each run: notice: /Stage[main]/Puppet::Base/Service[puppet]/ensure: ensure changed 'stopped' to 'running' When running in cron mode, you do not want the puppet service enabled, nor do you want it 'running'. When enabling the cron mode, the first part of puppet::cron::base does a Service override on the puppet service to set enable => false. That is a good thing, but all it does is make the service setup so it wont be run on boot. Unfortunately, the puppet service definition also has a 'ensure => running' which does an /etc/init.d/puppet status and then starts the service if it is not running. In a cron-only setup, the 'status' command results in a failure, because the daemon is not running, and then puppet attempts to start it, which goes nowhere because the /etc/default/puppet is configured not to start. So, looking further at puppet::cron::base we see there is a case switch, testing on operatingsystem and if its debian/ubuntu (or openbsd) it falls out of the case. If it is not one of those, it continues and does a test to see if the version of puppet is 2.6 and if so then it does an additional puppet Service override to set ensure=> stopped which keeps the service from being checked to see if it is running, and if it is not starting it. So to fix this, we remove debian/ubuntu from the case, so it will continue through and then we change the $puppet_majorversion test to look for anything greater than or equal to '2.6', since 2.7 and later are also versions we want this to work with. After this change, we no longer get the attempt to restart puppet on every run.
2012-08-10fix puppetmaster service definition for passengerMicah Anderson
Because passenger mode doesn't have its own daemon, it was a hack before to have the service definition for 'puppetmaster' be actually looking in the process list for 'apache2'. This sort of worked, but not if you need to notify the service for a restart. It also didn't actually work, because the hasstatus parameter was set to true, which meant that on every run, puppet did a /etc/init.d/puppetmaster status and found that it was not running and then tried to start it by doing /etc/init.d/puppetmaster start. That doesn't work because its turned off in /etc/default/puppetmaster when puppetmaster_mode='passenger'. So... this commit removes that hacky service definition and instead just requires the apache::base class, providing the apache service monitoring that is needed when you are running puppetmaster_mode='passenger'. It also has to pull up the Service[puppet] override which was adding the puppetmaster service, which makes no sense because there is no service. Finally, in order to notify it for changes, we need to use a selector to determine how to reload things based on puppetmaster_mode. Conflicts: manifests/puppetmaster/linux.pp
2012-08-09Because passenger mode doesn't have its own daemon, it was a hack before to ↵Micah Anderson
have the service definition for 'puppetmaster' be actually looking in the process list for 'apache2'. This sort of worked, but not if you need to notify the service for a restart. It also didn't actually work, because the hasstatus parameter was set to true, which meant that on every run, puppet did a /etc/init.d/puppetmaster status and found that it was not running and then tried to start it by doing /etc/init.d/puppetmaster start. That doesn't work because its turned off in /etc/default/puppetmaster when puppetmaster_mode='passenger'. So... this commit removes that hacky service definition and instead just requires the apache::base class, providing the apache service monitoring that is needed when you are running puppetmaster_mode='passenger'. It also has to pull up the Service[puppet] override which was adding the puppetmaster service, which makes no sense because there is no service. Finally, in order to notify it for changes, we need to use a selector to determine how to reload things based on puppetmaster_mode.
2012-07-17Temporarily disabled Package['puppetmaster']varac
otherwise you now get following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource(s) Package[puppetmaster] for overriding on node flea.leap.se see https://leap.se/code/issues/198
2012-07-16update README to specify that the $puppetmaster_ensure_version only works ↵Micah Anderson
for debian
2012-07-16remove no longer needed inheritance of puppet::puppetmaster::package as we ↵Micah Anderson
are not doing any overrides, instead we can just include the classes that we also want to load
2012-07-16remove the complicated test case for determining if 'puppetmaster-common' is ↵Micah Anderson
needed or not, this is handled by the apt::preferences_snippet and debian's package dependency resolution now stop inheriting puppet::master::package::base from puppet::puppetmaster::package::debian, it is no longer needed, because we are no longer overriding anything
2012-07-16remove unnecessary inheritance of puppet::puppetmaster::package to ↵Micah Anderson
puppet::puppetmaster::linux provide a warning message if you have tried to specify $puppetmaster_ensure_version on an operatingsystem that is not supported
2012-07-16update config.ru to newer version as supplied by puppetlabs for passenger ↵Micah Anderson
applications. This is likely not to work with older versions of passenger
2012-07-16add apt::preferences::snippet to enable specifying the puppetmaster version.Micah Anderson
The preferences snippet requires that we set the package parameter to 'puppet*' to pull in the correct dependencies. We set the priority to 2000 because according to apt_preferences(5): P > 1000 causes a version to be installed even if this constitutes a downgrade of the package which is the desired behavior. This should resolve issue #2928
2012-07-16we must fully qualify paths to execsMicah Anderson
2012-07-16update puppet.conf default file to have the newer section headings, required ↵Micah Anderson
to eliminate deprecation warnings
2012-07-16minor README language fixMicah Anderson
2012-07-16add information to README about specifying versionsMicah Anderson
2012-07-06added puppetmaster service def. for passengervarac
2012-07-06notify_passenger_puppetmaster: do apache2 reloadvarac
instead of touching .../restart.txt, which doen't seem to work with libapache2-mod-passenger 2.2.11debian-2
2012-06-272.7 underscore rename: site-puppetMicah Anderson
2012-06-27Merge remote-tracking branch 'lavamind/master'Micah Anderson
Conflicts: manifests/cron.pp manifests/puppetmaster/package/debian.pp
2012-06-27Merge remote-tracking branch 'shared/master'Micah Anderson
2012-04-12Merge remote-tracking branch 'lelutin/freebsd' into sharedMicah Anderson
2012-04-12Fix probable typos.intrigeri