Commit Graph

59 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
OpenDev Sysadmins 5adca8948e OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:37 +00:00
Ian Wienand 498adb3be6 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I1c3e78cd318f8248c92056de4cfc9581d2cd3bb3
2019-03-24 20:35:40 +00:00
Colleen Murphy dd2a0eea40 Update Gemfile for Zuulv3
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.

Change-Id: Iaa342148a18948af00f2c661777797cc53da0868
2018-07-12 09:57:44 +02:00
James E. Blair 9e01268f33 Systemd: start lodgeit after network
If it starts too early, it may not be able to resolve its database
connection.

Change-Id: I470b4377a39f95e0da1617abd1325327823bdc83
2017-12-14 09:02:46 -08:00
Colleen Murphy 27183a432f Depend on helper gem for spec_helper_acceptance
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.

Change-Id: Iaf0aa710b252fc61913a95ead55762eee6b31e6e
2017-08-18 10:41:43 +02:00
Colleen Murphy 8a8f2ef4f9 Remove author comment in unit file
This was unnecessarily copied over from the init script template.

Change-Id: Id162978873de474911a83303f58297e6105d0727
2017-06-13 21:55:24 +02:00
Colleen Murphy f807e4de7d Remove unnecessary beaker tests
It is good enough to assume that if puppet ran successfully then it also
was able to sucessfully find and install packages and apply config
files. For the sake of maintainability, this patch removes beaker tests
for individual files and packages. It also removes a check for a cron
that was already deleted from the manifest.

Change-Id: Ia8b29684213bc8c96d23fb9dd53baf8e65c85362
2017-06-11 22:33:28 +02:00
Colleen Murphy ff652b66cb Update beaker setup for xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I93723857496ed913954dcbc19869d96dcf542114
2017-06-11 22:33:28 +02: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
Spencer Krum 53cc271ba1 Use new infra_spec_helper for gem dependencies
Change-Id: I255b353fe972ecf0ce885569ee792cb73aed627d
2016-06-21 18:38:53 -07: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
Spencer Krum 4fa0309a77 Pin google-api-client; sanitize Gemfile
Change-Id: Ifc0be78e84440b800a165cda9f8fbb8a0915a5fa
2016-04-14 15:20:14 -07: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
Jenkins ad9af0541d Merge "fix puppet-lodgeit to support latest mysql" 2016-03-10 15:05:17 +00:00
Yolanda Robla 49932b823c fix puppet-lodgeit to support latest mysql
Change-Id: Ib7ad23917d083b1eb6ce9cf87beafb97a7579a7b
2016-02-09 11:41:07 +01:00
Spencer Krum 6ef73c05ef Use modern template syntax
Change-Id: Ic2429937e7d00ef0d9bc6773675977699a11cb44
2016-01-24 16:52:22 -08:00
Bruno Tavares c1c0648550 Add acceptance tests for puppet-lodgeit.
Add acceptance tests for puppet-lodgeit module so that once the module
is applied we check if files were created, packages were installed,
backup were configured and services were started.

Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
Change-Id: I8dfce2cd0feb0d2ea5746383dde18e23d5d691ff
2015-11-12 18:39:36 +00: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
Spencer Krum b0a3952922 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: Iae324450e815b4997f811f0eb68f864d53cb6a50
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:39:11 -07: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
Spencer Krum 189707396f Boilerplate beaker-rspec files
Change-Id: I41e92d3dcc24fae0d0e65d8eb7338dc664d46931
2015-07-28 02:04:48 -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
Jeremy Stanley 5311568c74 Replace ci.o.o links with docs.o.o/infra
The http://ci.openstack.org/ documentation site has been deprecated,
replaced by redirects to corresponding paths within
http://docs.openstack.org/infra/ where other Project Infrastructure
documentation already resides.

Change-Id: I6feb9717df54f3b0295b48e2a8744d694540fefc
2015-05-14 21:38:18 +00:00
Ramy Asselin cb16c4b482 Rename openstackci to openstackinfra
Change-Id: Idbfc946a906f0ac054ed62af993f8c2970d7c863
2015-04-20 13:44:55 -07:00
Jeremy Stanley 2394f4e065 Add missing LICENSE file
The content of this project is Apache 2 licensed, but we should
include a standard LICENSE file just to be clear about that.

Change-Id: Iee6320b9d7e35fbe8d3b0a9794f3e485c18ef2c8
2015-01-29 22:58:11 +00:00
Jonathan Harker 7236cc05f5 Add needed files to the new puppet module
Now that this puppet module has been split out from system-config, there
are some files we need to add to the module.

Change-Id: I13bd753928a76c5e6f2bfe378fa4e2118093450d
2015-01-05 13:15:21 -05: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
Jenkins 07a23375ad Merge "Fix modules deprecation warning in lodgeit module" 2014-04-17 20:23:27 +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
Spencer Krum 9e5cad3ae6 Fixup lodgeit templates to use @global vars
Change-Id: I2948ef60f0de0c5d3b6288b915a44eb7c66c52fa
2014-03-13 21:04:30 -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 1d694ed2c0 Remove the all pastes listing.
* modules/lodgeit/templates/layout.html.erb: Adjusted to match the
changes made in https://review.openstack.org/16808 for the show_all
function/rule.

Change-Id: I2b5b600e1c35e4d5a179c47e1722a9b3792bbbcc
Reviewed-on: https://review.openstack.org/16930
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2012-11-26 22:17:02 +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