Commit Graph

37 Commits

Author SHA1 Message Date
Zuul ca79c4e65e Merge "Retire repo" 2020-06-05 19:06:40 +00:00
OpenDev Sysadmins 08900ccfab Retire repo
Depends-On: https://review.opendev.org/720892
Change-Id: I642c142fae316ceaf113470151711402e83dac75
2020-04-22 10:19:04 -05:00
OpenDev Sysadmins 67de3c8b12 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 686403ecb8 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: I02b92de771c417d6676069d42b40f47b7d233b33
2019-03-24 20:35:38 +00:00
Colleen Murphy 815a2d377e 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: I06cc75151cdfb79c98020a40ea877b4b98ad4daa
2018-07-12 09:57:44 +02:00
Colleen Murphy 30bbbfd58f 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: Ib11eae592fda6fc34aa424e8f973cc1f570a30ed
2017-08-18 10:41:43 +02:00
Colleen Murphy e036e1c787 Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I68886804096e632aa1c54909f2601fafd0b068ee
2017-06-24 15:45:39 +02:00
Paul Belanger 957619df7b
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: I1ea3b44a986862b00e0be7b95a41ceb344dadabc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-01 21:08:52 -04:00
Spencer Krum ec82c98e62 Use new infra_spec_helper for gem dependencies
Change-Id: I40bbabd564fdd377cff872b90d58510c73e252da
2016-06-21 18:38:19 -07:00
Paul Belanger 5bb58dc4d7
Update pip provider to use openstack_pip provider
Change-Id: I9fcfe12a2aecb99be0dd36e6a5a57e45f56533ca
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-16 13:00:34 -04:00
Spencer Krum 173da20679 Pin google-api-client; sanitize Gemfile
Change-Id: I2494450fc96230b069595e79657ce38286aeff6e
2016-04-14 15:18:59 -07:00
Andrey Nikitin bfe2669891 Order of the class parameters is refactored
Order of those parameters is 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: I560d954fc6daf6eff6fac5b4d2b582d338986303
2016-03-21 11:53:10 +03:00
Spencer Krum f91cc59876 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: Ifea62c62aa61920f0ad5022079403a41ee801d85
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:35:55 -07:00
Jenkins 3bb51d4b7b Merge "Add Gemfile and puppet 4 checks" 2015-08-09 04:52:58 +00:00
Jenkins 6ba023f7db Merge "Fix class parameters" 2015-08-09 04:51:49 +00:00
Jenkins b3ad2ba977 Merge "Use instance variables in templates" 2015-08-09 04:49:32 +00:00
Spencer Krum ffcab30690 Boilerplate beaker-rspec files
Change-Id: If2b8b40ecfb313723df7035f08736a47d01b33de
2015-07-28 02:04:24 -07:00
Colleen Murphy ba456bfa1a 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 errors
caught by the puppet-lint-absolute_classname-check gem.

Change-Id: I860844dff7a64d32dd16f18a388af361c9cef263
2015-07-23 16:32:58 -07:00
Colleen Murphy ecb7018362 Fix class parameters
Values for the username, oauth_token, project_username, and
project_password parameters must be provided by the user. The empty
string is not a sane default and will cause broken deployments if used.
This change makes these parameters required. Infra is providing these
parameters in system-config so this change will not break Infra. If
downstream users are not providing these parameters their deployments
will not be functional, so this change should be safe for users already
using this class correctly.

The use of the projects parameter was removed in 15daf9a so it no
longer needs to be part of the parameter list. Infra is no longer using
the projects parameter in system-config so this change will not break
Infra. If downstream users still have this parameter as part of their
manifest, updating the module to this commit will break their puppet
runs, but not make any system changes.

Change-Id: Ic7d42f922ae436fe1b7b9bef21ca659ddedae432
2015-07-23 16:32:52 -07:00
Colleen Murphy f95ca8feb8 Use instance variables in templates
The use of ruby methods to access manifest variables has been
deprecated and will be removed in puppet 4. This patch updates the
template to use ruby instance variables to access manifest
variables.

Change-Id: I595a79830d2e94f0aec75f47707d3e5e3cc65523
2015-07-23 16:32:46 -07:00
Jeremy Stanley 7c00a95acc 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: I3c750ab4dc8f3790c5788f6b14325e0b3c75733a
2015-05-14 21:38:17 +00:00
Ramy Asselin 25d809b6b7 Rename openstackci to openstackinfra
Change-Id: I8522263d39da588c3c59ee53845c70dd9f8225e0
2015-04-20 13:44:01 -07:00
Jeremy Stanley 483bbe83ed 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:57:23 +00:00
Spencer Krum 9613af654d Adding initial files per spec
Change-Id: Ie94cbdbcada7e450844931f1ab85d265e449716a
2014-11-28 02:48:05 -08:00
James E. Blair b626425f88 Protect pygithub with proper capitalization.
Change-Id: I8a67a9781cc638138114da2eb870bcf856a37202
Reviewed-on: https://review.openstack.org/17272
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-12-01 00:58:52 +00:00
James E. Blair c153dbb0a3 Fix jeepyb: protect pygithub requirement.
Change-Id: I6b4db1dc08342018cae6203cbecbee69956c5918
Reviewed-on: https://review.openstack.org/17261
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-11-30 23:19:08 +00:00
Monty Taylor cbc3b43cdc Consume jeepyb.
Instead of keeping many of these files directly in the tree, use them
from the out-of-tree jeepyb project, which makes them easier to consume
for other people who are not us.

Change-Id: Id704f2e17dd80709ef63cbbf2c5475a08a835f91
Reviewed-on: https://review.openstack.org/16777
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-11-30 18:02:30 +00:00
Matthew Wagoner 3f4bcb45e6 Clean up of minor puppet-lint warnings.
Mostly documentation and parameterised class parameter complaints.

Change-Id: Idbfd348a5befb041ce6eb36f9c6b195fc0c6799f
Reviewed-on: https://review.openstack.org/16685
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-23 21:41:37 +00:00
Monty Taylor cf03da2d2b Attempt to more fully manage project creation.
Manage project creation via yaml files. Also,
Modify the manage_projects scripts to configure Gerrit project ACLs.
This change expects the project yaml to exist. The change will clone the
project for the localhost Gerrit install. It will then checkout the
meta/config ref, copy the ACL config file into the repo, commit, and
push to the origin. The ACL config location should be specified in the
projects.yaml file with the acl_config key.

For this to work the ACLs will need to be copied by Puppet from Puppet
to the Gerrit host. Add the file resource to do this as well.

Change-Id: I15a1ec13b381dce3c115c01c21f404ab79e72cc4
Reviewed-on: https://review.openstack.org/15352
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-14 01:18:23 +00:00
Monty Taylor 74aa19ac3b Reverse the close-pull logic.
We have a huge list of projects with all of them listing "close-pull" as an
option. Turns out we want to close pull requests for all of them - so instead,
let's only indicate 'has-pull-requests' if there is ever a project for whom
we do not want to close pull requests.

Change-Id: I4db31d324b7f260ea24f538ac5f5fc8e1feca75d
Reviewed-on: https://review.openstack.org/15626
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-10 23:04:27 +00:00
James E. Blair 92722056e0 Fix path to config in github script.
This was causing it to bail on start because the secure config has moved.

Change-Id: I8aea3fccd8d2ff9ee7cc7f29d98408c77b0034a2
Reviewed-on: https://review.openstack.org/15088
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-11-01 02:00:56 +00:00
Paul Belanger d9dc7332e0 Additional puppet-lint reformatting
Change-Id: I49e63755b8b5bf60673cf37b62371b3f299e3bbe
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/14971
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-10-29 19:21:24 +00:00
James E. Blair d0404e17cb Add python-yaml to github module.
Change-Id: Id79068e1295cbc7ba01a2c9b8db7db40230a2296
Reviewed-on: https://review.openstack.org/14412
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-10-13 15:47:27 +00:00
Monty Taylor 15daf9a9f2 Add support for initial project creation.
If replicate_local is set, this will ensure that /var/lib/git is created,
and that projects listed in the projects.config have repos there.

Additionally, it creates a new config file, projects.config which is a
yaml file listing all of the projects and various operational semantics about
them, such as whether or not they should have pull requests closed and whether
or not they track any remotes. This replaces remotes.config and github.config.

Moving forward, there is no reason to not have this script be able to
do github api calls to create the github repo if it's not there, set the
github project description, gerrit api calls to create the project in gerrit,
and initial project permissions templates.

Change-Id: I1ad803b0aa5f7386206d0c3f4cd858017242fe64
2012-08-02 15:49:02 +00:00
Monty Taylor 413161fd48 Fix all of the gerrit module problems.
Change-Id: I46001fd677bc9a3634c9860ec07438c326e908e3
2012-07-24 00:28:04 -05:00
Monty Taylor 4a741cd56f 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
Monty Taylor 644e41cfe5 Split github into its own module.
TODO: Add another script that sets the project description. Add the project
description to the config hash.

Change-Id: If4584b2a1e55e6eb912e1f557e31de216d49a516
2012-07-23 11:42:12 -05:00