Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Fargher <proglottis@gmail.com>2020-09-04 03:15:03 +0300
committerJames Fargher <proglottis@gmail.com>2020-09-04 03:15:03 +0300
commit9595ace0d51f1b1aa611f062dd0e4b6cca1afaa4 (patch)
treecce92a8fcb7be23d5ffdc3c41c625ce37a540395 /_support/terraform
parent3509ce8bc9d854b77df7886c663ec6dfca928217 (diff)
Add omnibus gitaly to terraform setup
Setup the omnibus gitaly as a storage "internal"
Diffstat (limited to '_support/terraform')
-rw-r--r--_support/terraform/roles/gitlab/templates/gitlab-gitlab.rb.j27
1 files changed, 6 insertions, 1 deletions
diff --git a/_support/terraform/roles/gitlab/templates/gitlab-gitlab.rb.j2 b/_support/terraform/roles/gitlab/templates/gitlab-gitlab.rb.j2
index 814e81e7d..7961edcd0 100644
--- a/_support/terraform/roles/gitlab/templates/gitlab-gitlab.rb.j2
+++ b/_support/terraform/roles/gitlab/templates/gitlab-gitlab.rb.j2
@@ -1,11 +1,16 @@
external_url 'http://{{ groups['gitlabs'][0] }}'
-gitaly['enable'] = false
+gitaly['enable'] = true
+gitaly['listen_addr'] = '0.0.0.0:8705'
git_data_dirs({
"default" => {
"gitaly_address" => "tcp://{{ groups['loadbalancers'][0] }}:2305",
"gitaly_token" => '{{ praefect_external_token }}'
+ },
+ "internal" => {
+ "gitaly_address" => "tcp://{{ hostvars[groups['gitlabs'][0]]['internal'] }}:8705",
+ "gitaly_token" => '{{ praefect_external_token }}'
}
})