Commit Graph

16 Commits

Author SHA1 Message Date
Monty Taylor fcab9a407a Update opendev git references in puppet modules
Not updating the gerrit git links thing, because that needs to
be a wider patch that updates the link syntax too.

Change-Id: I98013ba79e707540879e0cf2849a35c52f3371e8
2019-04-20 18:26:07 +00:00
James E. Blair 232f739e5d Fix gitea k8s files
The secret file needs different yaml template handling due to
multiline strings, and the service has a duplicate name.

Change-Id: I9930c4ff713ba87e1b4c819f6c80cab5b0ffd165
2019-02-14 16:39:12 -08:00
Zuul 8b2e6e511c Merge "Switch gitea to TLS" 2019-02-14 22:45:45 +00:00
James E. Blair 4ae46fd9c3 Switch gitea to TLS
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
2019-02-14 13:41:40 -08:00
Zuul a2b685ba49 Merge "Trigger deployment with gitea 1.7.1" 2019-02-14 21:39:49 +00:00
Zuul 1c7032b859 Merge "Trigger deployment with gitea 1.6.3" 2019-02-14 19:39:40 +00:00
James E. Blair 7641a78b37 Correct paths in rook playbook
Change-Id: I643c34e43869fddbb3d4008e2f81b142c327f6b1
2019-02-13 10:44:06 -08:00
James E. Blair 1f1f358c03 Fix gitea playbooks
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
2019-02-12 14:20:02 -08:00
James E. Blair 7610682b6f Configure .kube/config on bridge
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
2019-02-06 15:43:19 -08:00
Monty Taylor 7d08c7004a Trigger deployment with gitea 1.7.1
Change-Id: Iaced1140c5f7712d65b5ffc75154583de59e4220
2019-02-06 09:29:39 -08:00
Monty Taylor e8a26b5790 Trigger deployment with gitea 1.6.3
Change-Id: Ia53aadcdbd17ac3228cf2204d950793ae70c4d50
2019-02-06 09:29:39 -08:00
James E. Blair 17b996d2e1 Use project-config when syncing gitea repos
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
2019-02-06 09:29:39 -08:00
Monty Taylor 3513dfb9fc Prevent gitea pods from being co-scheduled
For scale out purposes, we only want one gitea pod per underlying
kubernetes node. Use podAntiAffinity to accomplish this.

Change-Id: Icd8f70cf7e1640e58133f67e8a519267ac3b36d3
2019-02-06 09:29:39 -08:00
Monty Taylor 35851e2053 Set APP_NAME for gitea
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
2019-02-05 18:58:16 +00:00
James E. Blair a6328eee0c Add gitea k8s resource definitions and playbook
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
2019-02-05 18:52:21 +00:00
Monty Taylor b867289ad2 Add resources for deploying rook and xtradb to kuberenets
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
2019-02-05 18:52:21 +00:00