From 8a75f6fecf99da19bb3e0a23bacc52a7fc43705a Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 1 Mar 2019 08:37:22 -0800 Subject: [PATCH] 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 --- modules/openstack_project/manifests/review.pp | 106 +++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/review.pp b/modules/openstack_project/manifests/review.pp index af00ee731d..6979dc3142 100644 --- a/modules/openstack_project/manifests/review.pp +++ b/modules/openstack_project/manifests/review.pp @@ -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/',