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:
authorJacob Vosmaer <jacob@gitlab.com>2019-12-10 18:21:31 +0300
committerJacob Vosmaer <jacob@gitlab.com>2019-12-10 18:21:31 +0300
commitbc17e42faabecadb0172cbbbf81af67f33d05a5c (patch)
treeb913e8d0ab51ee46ff797d39fe2110d0f66f726f /_support/config.praefect.toml.ci-sql-test.erb
parentec4680513e79915d442a6df180b703b69c88d53a (diff)
Add Postgres config support to Praefect
Diffstat (limited to '_support/config.praefect.toml.ci-sql-test.erb')
-rwxr-xr-x_support/config.praefect.toml.ci-sql-test.erb59
1 files changed, 59 insertions, 0 deletions
diff --git a/_support/config.praefect.toml.ci-sql-test.erb b/_support/config.praefect.toml.ci-sql-test.erb
new file mode 100755
index 000000000..3aabeed6f
--- /dev/null
+++ b/_support/config.praefect.toml.ci-sql-test.erb
@@ -0,0 +1,59 @@
+# Example Praefect configuration file
+
+# # TCP address to listen on
+listen_addr = "127.0.0.1:2305"
+
+# # Praefect can listen on a socket when placed on the same machine as all clients
+# socket_path = "/home/git/gitlab/tmp/sockets/private/praefect.socket"
+# # Optional: export metrics via Prometheus
+# prometheus_listen_addr = "127.0.01:10101"
+# # You can optionally configure Praefect to output JSON-formatted log messages to stdout
+# [logging]
+# format = "json"
+# # Optional: Set log level to only log entries with that severity or above
+# # One of, in order: debug, info, warn, errror, fatal, panic
+# # Defaults to "info"
+# level = "warn"
+# [sentry]
+# sentry_environment = ""
+# sentry_dsn = ""
+#
+# Optional: authenticate Gitaly requests using a shared secret. This token works the same way as a gitaly token
+# [auth]
+# token = 'abc123secret'
+#
+# # One or more Gitaly servers need to be configured to be managed. The names
+# of each server are used to link multiple nodes, or `gitaly_server`s together
+# as shard. listen_addr should be unique for all nodes.
+# Requires the protocol to be defined, e.g. tcp://host.tld:1234
+
+[[virtual_storage]]
+name = "praefect"
+
+[[virtual_storage.node]]
+ storage = "praefect-git-0"
+ address = "tcp://praefect-git-0.internal"
+ primary = true
+ token = 'token1'
+
+[[virtual_storage.node]]
+ storage = "praefect-git-1"
+ address = "tcp://praefect-git-1.internal"
+ token = 'token2'
+
+[[virtual_storage.node]]
+ storage = "praefect-git-2"
+ address = "tcp://praefect-git-2.internal"
+ token = 'token3'
+
+[database]
+# In CI this magical hostname 'postgres' points to our dedicated CI postgres instance.
+host = 'postgres'
+
+# POSTGRES_* variables are defined in gitlab-ci.yml
+dbname = '<%= ENV['POSTGRES_DB'] %>'
+user = '<%= ENV['POSTGRES_USER'] %>'
+password = '<%= ENV['POSTGRES_PASSWORD'] %>'
+
+# No SSL in CI
+sslmode = 'disable'