Commit Graph

37 Commits

Author SHA1 Message Date
Clark Boylan 95b9d8143c Retire this repo
The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.

Change-Id: I1494a2dd294c944f80f6cbe67cd96d7d39d70af7
2022-02-17 11:51:05 -08:00
Monty Taylor fbc4f1ed8b Allow pinning the lodgeit version
We're about to land some changes to lodgeit and it seems like we
might want to be careful about rolling them out.

Change-Id: I6e136099ba1f321ad008b14042574211b7d5e56d
2020-03-04 17:13:17 -08:00
Clark Boylan 4af16d4684 Reduce paste db local backup retention to 10 days
The default is 30 days but that is filling up our local disk and the
expectation is to have remote backups anyway. Reduce our retention to 10
days to free up disk.

Change-Id: Ie7ed6464f1ff50bf5010db5a53b29048d97f1fbe
2019-04-22 07:57:30 -07:00
Colleen Murphy d685933033 Add support for xenial
Add a systemd unit file for the paste service instead of relying on
upstart.

Change-Id: I9f43ca88fba5fd41c9a8aaf2e14ffa3f6b307619
Depends-On: If25da754ec107b8dba2d9343f16b54b99cc88e01
2017-06-11 22:33:04 +02:00
Philip Marc Schwartz d0653bc2ba Update pip provider to use openstack_pip provider
Change-Id: I8c1049e16ce35587c68f2dcae586a8509f67b30b
Signed-off-by: Philip Marc Schwartz <philip@progmad.com>
2016-06-16 10:19:45 -04:00
Andrey Nikitin d1e34ab9c7 Order of the classes parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: I8063448c4b30dc97acbf1cce047bc5dfb6b69664
2016-03-21 13:06:07 +03:00
Yolanda Robla 49932b823c fix puppet-lodgeit to support latest mysql
Change-Id: Ib7ad23917d083b1eb6ce9cf87beafb97a7579a7b
2016-02-09 11:41:07 +01:00
Yolanda Robla b1cb51e864 Add mysql class to manage db, and configure db name
When using local mysql, this class is useful to automate
database creation. Also add the ability to configure database
name, so it can match the name created on mysql class.

Change-Id: I9c97b4a6355816b931e93d053f4748ef88f0a823
2015-10-15 17:37:16 +02:00
Clint Adams 7a03ae7eb1 Let Apache know where to serve robots.txt from
Install robots.txt to its own directory, and set Apache's
DocumentRoot to that.

Change-Id: I753e5c766e505f6dd0325becbd67165a0315f402
2015-10-08 08:12:33 -04:00
Clint Adams 283fa23e56 Serve the local /robots.txt instead of proxying it
Exclude "/robots.txt" from Apache's reverse proxying so that it
can be served to crawlers.

Change-Id: Ibd3a592e7906169d40619ae5c8dc02afe3589a81
Depends-On: I55a86d3c703a667daf55cb75cf559eb23a556219
2015-10-02 23:38:27 -04:00
Elizabeth K. Joseph d38753b5f6 Add optional, enabled by default, robots.txt
Change-Id: I6cc0bbb8f84420fe640e65d26e1cdc4a4d961ba4
2015-09-21 16:33:44 -07:00
Bruno Tavares 3dcfde15bb Fix typo on the manifest.
The default argument for the MySQL host has a typo and should instead
be 'localhost', not 'locahost'.

Change-Id: I90408ea6cabb6c66f6a663d1c7f3d1944452191a
2015-09-18 13:43:42 -03:00
Colleen Murphy dc1445d742 Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. Also fix lint
errors caught by the puppet-lint-absolute_classname-check and
puppet-lint-empty_string-check gem as well as arrow alignment errors
not caught before.

The has_variable? function in the layout.html.erb template will return
true whether $image is set to empty string or undef, so we change the
template to look for nil so that the new default of undef will work
correctly.

Change-Id: I6738cfef08e0cf2faeabed469b9eff5e3c0bbb5a
2015-08-03 19:21:36 -07:00
Paul Belanger 909e6c2a7d Migrate to puppet-httpd module
puppet-httpd is the openstack-infra version of puppetlabs-apache
(0.0.4) release.

This patchset will remove the puppetlabs-apache namespace from -infra
allowing for possible future patchsets to use newer puppetlabs-apache
modules.

Change-Id: Iff6874b4c9f41c974b03accfbbf7eef6d047fa9b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-16 15:49:32 -04:00
K Jonathan Harker 4feb6c16c5 Use the correct name for apache
The name of the apache package and service are different on different
operating systems. Fortunately, the apache module populates a variable
with the correct name for us. This is also true of the apache ssl
package.

Change-Id: I7d93e56281f828cba9262c135b0beb43dce9748a
2014-06-04 17:33:50 -07:00
Monty Taylor 29f3962220 Migrate to using trove db for pastebin
The current drizzle-based pastebin has gotten a bit slow. Move to using
remote trove db.

Change-Id: I62fd164af26199fd9ed69770fac73c3e2f6a5344
2014-05-02 22:32:32 +00:00
William Van Hevelingen 265e7d3fd3 Fix modules deprecation warning in lodgeit module
DEPRECATION NOTICE: Files found in modules without specifying
'modules' in file path will be deprecated in the next major release.

Change-Id: I5cc7bce4645af9ae3672aaaee721c053929308b4
2014-03-23 09:54:09 -07:00
Monty Taylor 5dd095e97a Use cgit server instead of github for everything
We have a cgit server now, which means we should replace
all references to github with references to git.openstack.org.

Change-Id: I68ad1ce514fb4326c7d9940b5a84999af5b58562
2013-08-19 10:19:47 -07:00
James E. Blair affb0fe2ec Fix lodgeit puppet bugs.
Add a service dependency and subscribe lodgeit to drizzle refresh
events.

Change-Id: I4ed1d5255e8e46854133f00262904291ff5f1c41
Reviewed-on: https://review.openstack.org/34893
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Elizabeth Krumbach Joseph <lyz@princessleia.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-07-01 19:33:40 +00:00
James E. Blair 3ba11416df Finish switching nginx to apache2 on paste.
Change-Id: I9bb04bfd3c228eff636316dc3b79098ca801cbaa
Reviewed-on: https://review.openstack.org/29012
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-05-13 23:16:54 +00:00
Monty Taylor d85721f866 Rename CI to Infra in MANY MANY places.
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067
Reviewed-on: https://review.openstack.org/17319
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
2012-12-16 17:30:47 +00:00
Monty Taylor 5fe0618c40 Protect install of every jeepyb package.
Because puppet sucks at installing packages, wrap the installation of
everything that jeepyb needs in both jeepyb and in other places with
if blocks. *facepalm*

Change-Id: I69c73dabc3ea5d68bd057141b1ad758cdd68eafc
Reviewed-on: https://review.openstack.org/17130
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-30 18:25:30 +00:00
Jeremy Stanley dee47226a0 Undo problematic line continuations and ignore.
* Rakefile: Override line length warnings from puppet-lint with its
disable_80chars option.

* modules/gerrit/manifests/cron.pp, modules/gerrit/manifests/init.pp,
modules/gerrit/manifests/remotes.pp, modules/lodgeit/manifests/site.pp,
modules/openstack_project/manifests/cacti.pp: Undo line continuations on
long strings. These were causing particular problems when attempting to
apply crontab entries.

Change-Id: I417788d7953ee0d2b717349564ee9cc78c0c49c2
Reviewed-on: https://review.openstack.org/15822
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-11-12 18:30:14 +00:00
Matthew Wagoner e9964c7616 Cleanup lodgeit manifest lint errors.
Change-Id: Iec09a46b4c3a540154d962989dcf02b1a4605b52
Reviewed-on: https://review.openstack.org/14825
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-10-29 11:11:46 +00:00
Monty Taylor 5e06b3420b Clean up post-apache move carnage.
Change-Id: Ieeb8469126d64df75e7fa0fff67618daa6990674
Reviewed-on: https://review.openstack.org/11246
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-12 17:49:33 +00:00
Monty Taylor 361495ea07 Align all web server usage on apache module.
Change-Id: Idd712a8ee5ec81c6b88b7d3e2270dce4da254927
Reviewed-on: https://review.openstack.org/10838
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-12 17:03:46 +00:00
Monty Taylor ce9c4d7c36 Don't create database every run.
Change-Id: I524cab78b4f17a60ea7fdc3fd2a6af2ca82ebb51
Reviewed-on: https://review.openstack.org/10964
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-07 18:13:58 +00:00
Monty Taylor 493c1b9971 Replace manual git work with vcsrepo module.
Change-Id: Ia0f3acd50aab07cc83d13cd12c8f7fc67f1c697d
Reviewed-on: https://review.openstack.org/10832
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-07 07:09:43 +00:00
Monty Taylor aa77402660 Move python-pip include to a class.
You can't have two different classes install the same package (FAIL)
But you can have two different classes include the same class, so
by encapsulating the "install pip" code into a module, we can safely
consume it across multiple modules.

Sometimes I really hate puppet.

Change-Id: I3467c52b6887298c1b4d01a29873c63edf0adfd3
2012-07-23 15:43:27 -05:00
James E. Blair 4b97b6ef39 Use unattended upgrades.
Stop using latest for packages installed by puppet.  This way,
all system packages get updated, not just some random ones.

The unattended-upgrades config will email root.  It is configured
for openstack servers and jenkins slaves, but not template hosts
so that it doesn't interfere with spin-up.

Also, fix some bits in the gerrit module that were causing
continuous restarts on gerrit-dev.

Install emacs.

Change-Id: I51c9083ccd3669f284fce4b50c36a37a0cac92d8
2012-06-05 22:59:46 +00:00
Andrew Hutchings ee980266f8 Make lodgeit module use our lodgeit git repo
Our lodgeit repo has antispam and will have other features soon

Change-Id: I12b1f8c1bfb5a2442370a55f8527196364c91ec8
2012-03-22 18:04:24 +00:00
Andrew Hutchings b4b46dfd1c Stop paste cronspam
Add Andrew to syslog alias
Add -q to git commit

Fixes bug #929055

Change-Id: I29a4aef4d4839aea3a5014cb9c8ea144b51d1935
2012-02-08 19:33:33 +00:00
Andrew Hutchings 3c7efc0fab Cleanup puppet modules
Make files notify services to restart when changed
Improve planet's cron, spit out a date/time and append instead of overwrite log

Change-Id: I0c2ee96c4aff5512a891c49b8b2df5c20c9cab44
2012-02-06 16:32:34 +00:00
Andrew Hutchings 8f33c6b820 Fix lodgeit cron
A '%' sign was not escaped correctly causing a cron error when triggering backups

Change-Id: Icd5f78d0a310520a979f24418c41755a5e91ca13
2012-02-02 12:38:49 +00:00
Andrew Hutchings 76c625740b Add backups to lodgeit
Creates a git repo in /var/backups/lodgeit_db
Adds a backup file per installation in the repo
Adds a daily cron to take the backup and commit it in the repo

Change-Id: I9b4a684485bb37f3ae83b5aa39015c9489c29db4
2012-02-01 15:12:45 +00:00
Andrew Hutchings f5a1f59f5a Fix lodgeit used in puppet
It appears the official lodgeit was abandoned in a broken state (I can't get it to work)
This branch switches to a hg branch of lodgeit that works and removes the need for the db hacks in the process

Change-Id: Ic4860e61b26bbde9bac7d5767e94ce066d244f78
2012-02-01 11:13:13 +00:00
Andrew Hutchings 25aaf4d124 Add lodgeit to puppet
Will automatically install paste.drizzle.org and paste.openstack.org onto a server

Change-Id: Ia2c1e37892f3ae8e3d4034e38ddfaa01c6a92a54
2012-01-31 16:11:02 +00:00