Skip to content

Commit fa6d537

Browse files
authored
Merge pull request #2135 from sameersbn/gitlab-12.9.5
gitlab: release 12.9.5
2 parents 93e05ff + df6a99a commit fa6d537

File tree

2 files changed

+49
-12
lines changed

2 files changed

+49
-12
lines changed

assets/runtime/config/gitaly/config.toml

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
# Example Gitaly configuration file
2+
# Documentation lives at https://docs.gitlab.com/ee/administration/gitaly/ and
3+
# https://docs.gitlab.com/ee//administration/gitaly/reference
24

35
socket_path = "{{GITALY_SOCKET_PATH}}"
46

7+
# The directory where Gitaly's executables are stored
8+
bin_dir = "/usr/local/bin/"
9+
510
# # Optional: listen on a TCP socket. This is insecure (no authentication)
611
# listen_addr = "localhost:9999"
7-
#
12+
# tls_listen_addr = "localhost:8888
813

914
# # Optional: export metrics via Prometheus
1015
# prometheus_listen_addr = "localhost:9236"
11-
#
1216

13-
# # Git executable settings
17+
# # Optional: configure where the Gitaly creates the sockets for internal connections. If unset, Gitaly will create a randomly
18+
# # named temp directory each time it boots.
19+
# # Non Gitaly clients should never connect to these sockets.
20+
# internal_socket_dir = "/home/git/gitlab/tmp/sockets/private/internal"
21+
22+
# # Optional: authenticate Gitaly requests using a shared secret
23+
# [auth]
24+
# token = 'abc123secret'
25+
# transitioning = false # Set `transitioning` to true to temporarily allow unauthenticated while rolling out authentication.
26+
27+
# [tls]
28+
# certificate_path = '/home/git/cert.cert'
29+
# key_path = '/home/git/key.pem'
30+
31+
# # Git settings
1432
# [git]
1533
# bin_path = "/usr/bin/git"
34+
# catfile_cache_size = 100
1635

1736
[[storage]]
1837
name = "default"
@@ -27,31 +46,46 @@ path = "{{GITLAB_REPOS_DIR}}"
2746

2847
# # You can optionally configure Gitaly to output JSON-formatted log messages to stdout
2948
# [logging]
49+
# # The directory where Gitaly stores extra log files
50+
dir = "{{GITLAB_LOG_DIR}}"
3051
# format = "json"
31-
# # Additionally exceptions can be reported to Sentry
52+
# # Optional: Set log level to only log entries with that severity or above
53+
# # One of, in order: debug, info, warn, errror, fatal, panic
54+
# # Defaults to "info"
55+
# level = "warn"
56+
#
57+
# # Additionally exceptions from the Go server can be reported to Sentry
3258
# sentry_dsn = "https://<key>:<secret>@sentry.io/<project>"
59+
# # Exceptions from gitaly-ruby can also be reported to Sentry
60+
# ruby_sentry_dsn = "https://<key>:<secret>@sentry.io/<project>"
3361

3462
# # You can optionally configure Gitaly to record histogram latencies on GRPC method calls
3563
# [prometheus]
3664
# grpc_latency_buckets = [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]
3765

3866
[gitaly-ruby]
3967
# The directory where gitaly-ruby is installed
40-
dir = "/home/git/gitaly/ruby"
68+
dir = "{{GITLAB_GITALY_INSTALL_DIR}}/ruby"
4169

4270
# # Gitaly-ruby resident set size (RSS) that triggers a memory restart (bytes)
43-
# max_rss = 300000000
44-
#
71+
# max_rss = 200000000
72+
#
4573
# # Grace period before a gitaly-ruby process is forcibly terminated after exceeding max_rss (seconds)
4674
# graceful_restart_timeout = "10m"
47-
#
75+
#
4876
# # Time that gitaly-ruby memory must remain high before a restart (seconds)
4977
# restart_delay = "5m"
50-
78+
#
79+
# # Number of gitaly-ruby worker processes
80+
# num_workers = 2
81+
#
82+
# # Search path for system gitconfig file (e.g. /etc, /opt/gitlab/embedded/etc)
83+
# # NOTE: This only affects RPCs that use Rugged.
84+
# rugged_git_config_search_path = "/etc"
5185

5286
[gitlab-shell]
5387
# The directory where gitlab-shell is installed
54-
dir = "/home/git/gitlab-shell"
88+
dir = "{{GITLAB_SHELL_INSTALL_DIR}}"
5589

5690
# # You can adjust the concurrency of each RPC endpoint
5791
# [[concurrency]]

assets/runtime/functions

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ gitlab_configure_gitaly() {
236236
echo "Configuring gitlab::gitaly..."
237237
update_template ${GITLAB_GITALY_CONFIG} \
238238
GITALY_SOCKET_PATH \
239-
GITLAB_REPOS_DIR
239+
GITLAB_GITALY_INSTALL_DIR \
240+
GITLAB_LOG_DIR \
241+
GITLAB_REPOS_DIR \
242+
GITLAB_SHELL_INSTALL_DIR
240243

241244
update_template ${GITLAB_CONFIG} \
242245
GITALY_CLIENT_PATH \
@@ -623,7 +626,7 @@ gitlab_configure_oauth2_generic() {
623626
OAUTH2_GENERIC_USER_NAME \
624627
OAUTH2_GENERIC_USER_EMAIL \
625628
OAUTH2_GENERIC_NAME
626-
else
629+
else
627630
exec_as_git sed -i "/name: 'oauth2_generic'/,/{{OAUTH2_GENERIC_NAME}}/d" ${GITLAB_CONFIG}
628631
fi
629632
}

0 commit comments

Comments
 (0)