4 Commits

Author SHA1 Message Date
Clark Boylan
8a9ed04cab Simplify gitea project creation control flow
Previously we set strategy: free and max_fail_percentage: 1 and this
probably made sense when we were using native ansible to do all of the
work to create projects. That was slow and broken down into many tasks.

Now however, we have a single task that calls out to a python module
that does all the work for each gitea host. That means we won't get any
additional parallelization from the free strategy. We also don't want to
stop the python module on all hosts if any of them fail, instead let
them all run to completion if they can. Then if any giteas fail we
should skip the play on review.

Change-Id: I1548e7946526b683d71fe4e905faabd1049f186c
2020-09-24 11:28:42 -07:00
Andreas Jaeger
173118e471 Fix URLs after OpenDev rename
As part of OpenDev rename, a lot of links were changed.
A couple of URLs point to old locations, update them.

This list was done while grepping for "openstack-infra" and fixing
locations that are wrong.

Change-Id: I313d76284bb549f1b2c636ce17fa662c233c0af9
2020-03-18 18:23:17 +01:00
Monty Taylor
caebf387b4 Translate gitea project creation to python
Sadly, as readable as the use of the uri module to do the interactions
with gitea is, more reent ansible changed how subprocesses are forked
and this makes iterating over all the projects in projects.yaml take
an incredibly long amount of time.

Instead of doing it in yaml, make a python module that takes the list
one time and does looping and requests calls. This should make it be
possible to run the actual gitea creation playbook in integration tests.

Change-Id: Ifff3291c1092e6df09ae339c9e7dddb5ee692685
2019-07-11 08:21:35 -04:00
Monty Taylor
d3220a7ade Add utility playbook for fixing gitea project settings
We normally only do project settings when we create the project.
Add a playbook we can use to do a manual sync from project-config.

Change-Id: I5260f2de697420a01d796acc3128be00705a53ee
2019-03-04 16:06:49 +00:00