Not updating the gerrit git links thing, because that needs to
be a wider patch that updates the link syntax too.
Change-Id: I98013ba79e707540879e0cf2849a35c52f3371e8
The secret file needs different yaml template handling due to
multiline strings, and the service has a duplicate name.
Change-Id: I9930c4ff713ba87e1b4c819f6c80cab5b0ffd165
Gitea supports internal TLS termination as well as redirection of
http to https. That may be simpler than terminating in a reverse
proxy. Let's try it.
Also, make the dockerfile match the expectation of the job that
there will be a gitea-init stage.
Also, fix the repository root setting in app.ini.
Change-Id: Ia6b66b53cebdb1afa49fef89a0559615f98052f1
First, we need an @ before the extra vars files. Why? Because
an @ is needed.
Second, the rook playbook was stringing all 4 commands on to one
exec call which was working poorly. Instead, make 4 tasks so that
it's slightly better represented in ansible output, each of which
has a (presumably) valid command.
Change-Id: I30efe84d2041237a00da0c0aac02afa92d29c0fb
Add the gitea k8s cluster to root's .kube/config file on bridge.
The default context does not exist in order to force us to explicitly
specify a context for all commands (so that we do not inadvertently
deploy something on the wrong k8s cluster).
Change-Id: I53368c76e6f5b3ab45b1982e9a977f9ce9f08581
We need to create repos in gitea before we do so in Gerrit (because
they will not be replicated correctly if Gerrit pushes to a repo
that doesn't already exist in gitea). Therefore, we need to add
gitea to the repo creation playbook so that we create new repos
based on the contents of project-config. This updates the gitea
sync-repos playbook to use that instead of fetching the list from
Gerrit.
It also improves the gitea bootstrap playbook to wait for the load
balancer to come online.
Change-Id: I783a2eed497a830aaf71ad95dea03594774ff6d7
For scale out purposes, we only want one gitea pod per underlying
kubernetes node. Use podAntiAffinity to accomplish this.
Change-Id: Icd8f70cf7e1640e58133f67e8a519267ac3b36d3
Change the app name from gitea to opendev. Also, add a tagline
because why not?
And add two missing settings. And fix the pandoc command for
RST rendering. And fix the gitea URL. Keep one copy of old
replicasets. Keep 4 replicas. Add a dummp env variable to trigger
deployments.
Change-Id: I0182d18a838d444d5853238fa2e48b4511383a94
This adds k8s resource definitions for running gitea, and an ansible
playbook to create them.
It also includes ansible playbooks to create orgs and repos.
Change-Id: Ib64597512c6a85d7e1495d18ae42b242f9af5a67
The gitea service needs an HA shared filesystem, which is provided by
cephfs and managed by rook.io.
It also needs a database service, which is provided by
percona-xtradb-cluster.
Change-Id: Ie019c2e24c3780cec2468a00987dba4ac34ed570