Commit Graph

42 Commits

Author SHA1 Message Date
Clark Boylan 92ff76e017 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: I4c99ae4ea9924c97357ebf909f267976872a9323
2022-02-17 11:30:24 -08:00
OpenDev Sysadmins 4c9f3c60ea 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:26:01 +00:00
Colleen Murphy cac249d5d2 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: I321ff4eef6e6af095ad1856bc29cbaf8c449efbc
2018-07-12 09:57:43 +02:00
Clark Boylan c9c748307c Support for package blacklists
This adds support for blacklisting the mirroring of certain packages.
This requires a very new bandersnatch running under python3.

Change-Id: I0de38d79947bbae10650879b0fbdc77db0131918
2018-04-16 14:37:15 -07:00
Clark Boylan 546a73ba0c Install bandersnatch under python3
If the bandersnatch source is set to pip3 then install bandersnatch from
pip under python3. This will allow us to install current bandersnatch and
use newer features like package blacklisting.

Change-Id: I97d8e0ef5a1fb75c513b7f87d6f015f57cd42df6
2018-04-16 14:37:00 -07:00
Ian Wienand d364bf6738 Catch subprocess output and print
If bandersnatch fails, we don't get any useful logging info.  Print
the output on command failure.

Change-Id: Ia38643afd3091fb06f080d0063536477f0ed73a4
2018-03-16 09:59:28 +11:00
Jeremy Stanley e6451b8835 Use the correct name for the stale_url variable
In the run script, fix a latent regression involving purging of
stale URLs, where the wrong variable name was used.

Change-Id: I78795e86033e1a60364e27c65575854c68bc1c05
2018-02-01 20:34:54 +00:00
Colleen Murphy 04d2a773ae 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: I7a23414094109add8afefc2dbddf863091994403
2017-08-18 10:41:43 +02:00
Jenkins 3cac9d0db1 Merge "Fix beaker on xenial" 2017-05-03 18:46:41 +00:00
Colleen Murphy 59da2330f0 Fix beaker on xenial
Since the beaker jobs are being run on xenial, we need a special nodeset
for it, otherwise beaker gives an error:

 beaker-hostgenerator was not able to use this value as input.
 Exiting with an Error.

We also want to install puppet from the Ubuntu repos rather than from
puppetlabs, since puppetlabs doesn't support puppet 3 for Xenial. For
centos we can keep the install process the same.

Change-Id: Ifd2244ae9dd212b2475f9cd6adb994bc058a4769
Depends-On: I256e71092acf13d6296c23abc70f11ce692a2efb
2017-05-02 19:25:20 +02:00
Paul Belanger 947f0ed1af
Add bindep.txt file
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.

Change-Id: I256e71092acf13d6296c23abc70f11ce692a2efb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-01 21:05:32 -04:00
Monty Taylor 93676a69fb
Pin bandersnatch to 1.11
Because the world regularly loses its collective mind when living under
the aegis of the god known as SemVer, clearly it's ok to break users when you
do it while bumping the major version.

Humble supplicants that we are, bowing before the mightiness and
righteous glory that places developer convenience and code cleanliness
over actual users actually using the actual software, we must prostrate
ourselves and beg for forgiveness while pinning the software to the
previous working version so that our users can have a mirror that works.

Woe betide us that we do not honor the obession with discarding
compatibility and rushing madly headlong into the abyss of the future.
Clearly we are not worthy to sit at the right hand of Tom the father and
his legion of cohorts, but instead must actually run a production
service.

Change-Id: If7bcf7cd93ac0e22d3294e401556f6642389f039
2017-04-06 08:55:42 -05:00
Jenkins 6f5b7ec8ce Merge "Purge normalized URLs" 2016-07-28 14:58:11 +00:00
Ian Wienand eb5b5408a6 Ensure pip updates to latest release
I mistakenly assumed in I2b5822a7383b8f2f49958c8268453333dabe52cc that
this module would update the installed version of bandersnatch.
Installing from pip, we want to get the latest release.

Change-Id: I6a1f213a3127f57b41b4ec7e3f128b1bbde2ae37
2016-07-27 11:39:06 +10:00
Jenkins be277fc4a5 Merge "Use new infra_spec_helper for gem dependencies" 2016-07-25 20:21:12 +00:00
Clark Boylan 28d1f2fc3c Remove racy portion of rspec test
We can't assume bandersnatch hasn't run yet after puppet is done since
it runs on a cron it could start running even while puppet is still
running. Instead just assert that it does its job after it should have
run. This fixes a test failure due to the racyness that existed
previously.

Change-Id: I3f919c9dbd762c1dc603e24899a7ced16d1165a0
2016-07-21 13:27:30 -07:00
Spencer Krum c998f0dc16 Use new infra_spec_helper for gem dependencies
Change-Id: Ie1535d2db1e54f7fbf379de86a2fe9a9a30710b4
2016-06-21 18:37:44 -07:00
Philip Marc Schwartz 1df4ea0e16 Update pip provider to use openstack_pip provider
Change-Id: I13f56014c09eae899517324bf303c11024f45baf
Signed-off-by: Philip Marc Schwartz <philip@progmad.com>
2016-06-16 10:19:13 -04:00
Colleen Murphy aae5bb5a65 Fix acceptance tests
In 2940279 management of the apache vhost was split into a separate
class and the vhost_name parameter was removed from the
bandersnatch::mirror class. This wasn't done in a backwards compatible
way and the acceptance tests were never updated to use the new API.
Additionally, a88c399 split the bandersnatch cron job out of the mirror
class into its own class, so the test for the existence of the job was
failing. This patch updates the tests to use the new classes and to
stop using the now invalid parameter.

We also relax some of the internal system assertions and opt instead
for checking that the service is working correctly by curling the
endpoints and checking the contents. This exposed an issue on CentOS
where selinux was not allowing apache to serve the robots.txt file, so
also added an selinux rule to the fixture.

Change-Id: If724c51b72f634a95bbffd080a9d33234a5d7645
2016-05-27 14:13:33 -07:00
James E. Blair e6a30dd0d7 Purge normalized URLs
Also, purge the json endpoint.

Change-Id: I87e8760300f469220a10d3652e86c81bef3cc89f
2016-05-20 13:42:33 -07:00
Spencer Krum 863b2ffae7 Pin google-api-client; sanitize Gemfile
Change-Id: I1331e3ebbd70fc877c85809bdedbf5777d08cc26
2016-04-14 15:17:12 -07:00
Andrey Nikitin 8d3c2b63eb 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: I4cce6b8e972c45d2a23e57e747de7b9ef0d691a3
2016-03-20 02:05:49 +03:00
James E. Blair 5c59f9527b Make sure mercurial is installed
Change-Id: I3919c3aabb9c3fad8465c42c68fcfd1aed6fcfb5
2016-01-22 14:39:32 -08:00
James E. Blair a88c399ad8 Make bandersnatch::cron class
So that the cronjob may be managed separately.

Change-Id: I56bb3ce2237be1179724f7a2bdcf9d5b04bdecd2
2016-01-21 10:21:32 -08:00
James E. Blair 2940279e8a Make bandersnatch::httpd class
So that apache may be controlled separately.

Change-Id: Id35ed8fd0cacc1fbdc77b811a4386718f9785a77
2016-01-21 07:35:06 -05:00
James E. Blair 08b809cd6d Add support to install from alternate locations
Add support to install bandersnatch from a user-specified mercurial
repo.

Change-Id: I6853ee894c4a5d62a93aedf4b0e9dfaaa96f2c87
2016-01-20 13:02:28 -08:00
James E. Blair 9714729ba5 Add hash_index support
This is added in https://bitbucket.org/pypa/bandersnatch/pull-requests/16/add-option-to-dir-hash-index-files/diff

Change-Id: I29278264af04f1bce4388a2bd58f0334807bb6e1
2016-01-20 13:02:23 -08:00
Glauco Oliveira 0258a70c25 Add acceptance tests for puppet-bandersnatch
Add acceptance tests for puppet-bandersnatch module so that once the
module is applied we check if files were created, packages were
installed and services were started.

Change-Id: Iaa1e27842351d834d469f76d5aabe54ff49bd089
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
2015-10-15 18:01:48 -03:00
Spencer Krum 0492eff513 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I4dba0ed8c6b81bde89302a6b2660718956bd897a
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:34:25 -07:00
Jenkins 95391190ca Merge "Add trailing comma to prameters list" 2015-08-16 12:13:47 +00:00
Jenkins 9f6999c79d Merge "Specify which user is running the mirror" 2015-08-14 20:41:36 +00:00
Spencer Krum 8fbd6ff66a Add trailing comma to prameters list
Change-Id: I65ce982d00afbcfde1b5e66790b4257c21df4a7e
2015-08-14 13:34:23 -07:00
Spencer Krum 57a534ad1c Boilerplate beaker-rspec files
Change-Id: I8762092786c6abc8ae3ea36e212efc28e4906a48
2015-07-28 02:03:52 -07:00
Paul Belanger d6e02a5264 Remove invalid comment
Change-Id: I2ba548c15cfb81e3cc7f517deb737b780cc5b87c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-24 12:56:16 -04:00
Jenkins ac55c78fd8 Merge "Remove puppet-lint-numericvariable gem" 2015-07-24 16:32:02 +00:00
Colleen Murphy 440a97f8a0 Remove puppet-lint-numericvariable gem
Variables with numbers for names are valid as regex capture groups in
puppet 4[1], so this check is not beneficial and can be
counterproductive when we do actually want to have numeric variables.

[1] https://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#naming

Change-Id: I131cdc5c7ee2d6bae23766c078711a616bc1575a
2015-07-21 19:37:11 -07:00
Paul Belanger 7b176ea54c 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: I84a0882a18fb83a6eff7a3c1a27aea2813baf7f0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-16 15:40:53 -04:00
Nikki Heald 779e2624f7 Specify which user is running the mirror
Default user is 'root' to keep backwards compatibility.

Change-Id: I8c2347053303e28a55216918c4f8b47cd0c8a7d3
2015-07-16 10:32:28 +01:00
Colleen Murphy 7c85a7d0bc Enable arrow alignment lint check
Discussion following https://review.openstack.org/#/c/201399/ confirmed
that we do want to enforce this check. This patch re-enables the check
and fixes lint errors that fail the check.

Change-Id: I1d3fd00f025aba1abf9b723ea58c99e8458ee5b6
2015-07-14 19:23:49 -07:00
Colleen Murphy e5f8347365 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. This patch also
corrects lint errors caught by the puppet-lint-absolute_classname-check
gem.

Change-Id: I419a1354d76cda4c6b177bcab0eb7ff7866410f6
2015-07-13 19:40:58 -07:00
Mike Heald 2889d8d443 Initial import of puppet-bandersnatch module
Module based on the existing bandersnatch manifests.

Change-Id: Ida13ff6ffa3505c48330e35bcf04ad459d975d9b
2015-03-25 16:40:57 +00:00
OpenStack Project Creator f6875d7722 Added .gitreview 2015-03-25 15:10:06 +00:00