Replicate to the standalone gitea severs

We discovered that gitea doesn't like to be run in a shared everything
configuration. Upstream is working to solve those issues but until they
do we'll run 8 independent gitea servers intead of one shared cluster
for "production". The shared cluster remains for testing so we rename
its replication target then add eight new targets for the standalone
servers.

Note that this uses the full ssh:// url format so that we can set the
non standard ssh port. This was tested on review-dev against the github
replica there. Docs can be found at:
https://git-scm.com/docs/git-push#URLS

Change-Id: I372627d7fa4240b8d34a9067a2e16dda2b6fdb07
Story: 2004627
Task: 29704
This commit is contained in:
Clark Boylan 2019-03-01 08:37:22 -08:00
parent 04077adf29
commit 8a75f6fecf
1 changed files with 105 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class openstack_project::review (
]
},
{
name => 'gitea',
name => 'gitea-k8s',
url => 'git@38.108.68.64:',
authGroup => 'Anonymous Users',
replicationDelay => '1',
@ -262,6 +262,110 @@ class openstack_project::review (
],
threads => '8',
},
{
name => 'gitea01',
url => 'ssh://git@gitea01.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea02',
url => 'ssh://git@gitea02.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea03',
url => 'ssh://git@gitea03.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea04',
url => 'ssh://git@gitea04.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea05',
url => 'ssh://git@gitea05.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea06',
url => 'ssh://git@gitea06.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea07',
url => 'ssh://git@gitea07.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'gitea08',
url => 'ssh://git@gitea08.opendev.org:222/',
authGroup => 'Anonymous Users',
replicationDelay => '1',
replicatePermissions => false,
mirror => true,
push => [
'+refs/heads/*:refs/heads/*',
'+refs/tags/*:refs/tags/*',
],
threads => '4',
},
{
name => 'local',
url => 'file:///opt/lib/git/',