upgrading gitlab-ce v14.10.5 to v15.0.5 - RuntimeError compiling Redis cookbook
Summary
I have gitlab-ce v14.10.5 package installed in a Debian stretch VM. VM is managed with Puppet, using vox-pupuli puppet module v4.0.1 for gitlab-omnibus.
During the upgrade to v15.0.5-ce, a Could not connect to Redis at /var/opt/gitlab/redis/redis.socket: No such file or directory
error occured, executing /opt/gitlab/embedded/bin/redis-cli -s /var/opt/gitlab/redis/redis.socket INFO
command in gitlab-ctl reconfigure
. The upgrade ends with error exit status 1
:
gitlab preinstall: Automatically backing up /etc/gitlab
Could not find '/etc/gitlab/config_backup' directory. Creating.
Running configuration backup
Creating configuration backup archive: gitlab_config_1663152512_2022_09_14.tar
/etc/gitlab/
/etc/gitlab/gitlab.rb
/etc/gitlab/gitlab-secrets.json
/etc/gitlab/initial_root_password
/etc/gitlab/gitlab-secrets.json.bak
/etc/gitlab/trusted-certs/
Configuration backup archive complete: /etc/gitlab/config_backup/gitlab_config_1
663152512_2022_09_14.tar
Keeping all older configuration backups
Unpacking gitlab-ce (15.0.5-ce.0) over (14.10.5-ce.0) ...
Setting up gitlab-ce (15.0.5-ce.0) ...
Checking PostgreSQL executables:Starting Cinc Client, version 15.17.4
resolving cookbooks for run list: ["gitlab::config", "postgresql::bin"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- postgresql (0.1.0)
- logrotate (0.1.0)
- package (0.1.0)
- redis (0.1.0)
- monitoring (0.1.0)
- registry (0.1.0)
- mattermost (0.1.0)
- consul (0.1.0)
- praefect (0.1.0)
- gitlab-kas (0.1.0)
- nginx (0.1.0)
- gitaly (0.1.0)
- letsencrypt (0.1.0)
- gitlab-pages (0.1.0)
- runit (5.1.3)
- acme (4.1.3)
- crond (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 4 resources
Recipe: postgresql::bin
* ruby_block[check_postgresql_version] action run (skipped due to not_if)
* ruby_block[check_postgresql_version_is_deprecated] action run (skipped due t
o not_if)
* ruby_block[Link postgresql bin files to the correct version] action run
- execute the ruby block Link postgresql bin files to the correct version
* template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
Running handlers:
Running handlers complete
Cinc Client finished, 1/4 resources updated in 20 seconds
Checking PostgreSQL executables: OK
Shutting down all GitLab services except those needed for migrations
ok: down: gitlab-kas: 0s, normally up
ok: down: gitlab-workhorse: 0s, normally up
ok: down: logrotate: 0s, normally up
ok: down: nginx: 0s, normally up
ok: down: puma: 1s, normally up
ok: down: sidekiq: 0s, normally up
Ensuring the required services are running
ok: run: postgresql: (pid 15745) 89755s
ok: run: redis: (pid 15755) 89754s
ok: run: gitaly: (pid 15677) 89758s
run: postgresql: (pid 15745) 89755s; run: log: (pid 1689) 135518s
run: redis: (pid 15755) 89754s; run: log: (pid 1688) 135518s
run: gitaly: (pid 15677) 89758s; run: log: (pid 1687) 135518s
Reconfigure GitLab to apply migrations
Starting Cinc Client, version 15.17.4
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- package (0.1.0)
- redis (0.1.0)
- gitlab (0.0.1)
- logrotate (0.1.0)
- postgresql (0.1.0)
- consul (0.1.0)
- registry (0.1.0)
- monitoring (0.1.0)
- gitlab-kas (0.1.0)
- gitlab-pages (0.1.0)
- letsencrypt (0.1.0)
- nginx (0.1.0)
- runit (5.1.3)
- acme (4.1.3)
- mattermost (0.1.0)
- gitaly (0.1.0)
- praefect (0.1.0)
- crond (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
...
...
...
Recipe: redis::enable
* redis_service[redis] action create
* account[user and group for redis] action create
* group[user and group for redis] action create (up to date)
* linux_user[user and group for redis] action create (up to date)
(up to date)
* group[Socket group] action create (up to date)
* directory[/var/opt/gitlab/redis] action create (up to date)
* directory[/var/log/gitlab/redis] action create (up to date)
* template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
Recipe: <Dynamically Defined Resource>
* service[redis] action nothing (skipped due to action :nothing)
* runit_service[redis] action enable
* ruby_block[restart_service] action nothing (skipped due to action :nothi
ng)
* ruby_block[restart_log_service] action nothing (skipped due to action :n
othing)
* ruby_block[reload_log_service] action nothing (skipped due to action :no
thing)
* directory[/opt/gitlab/sv/redis] action create (up to date)
* template[/opt/gitlab/sv/redis/run] action create
- update content in file /opt/gitlab/sv/redis/run from da365d to 593ded
--- /opt/gitlab/sv/redis/run 2022-09-13 00:01:08.279412831 +0300
+++ /opt/gitlab/sv/redis/.chef-run20220914-8872-1s5m2x1 2022-09-14 13:54
:29.755844148 +0300
@@ -2,5 +2,9 @@
exec 2>&1
umask 077
-exec chpst -P -U gitlab-redis:gitlab-redis -u gitlab-redis:gitlab-redis
/opt/gitlab/embedded/bin/redis-server /var/opt/gitlab/redis/redis.conf
+exec chpst -P \
+ -U gitlab-redis:gitlab-redis \
+ -u gitlab-redis:gitlab-redis \
+ /opt/gitlab/embedded/bin/redis-server \
+ /var/opt/gitlab/redis/redis.confCould not connect to Redis
* directory[/opt/gitlab/sv/redis/log] action create (up to date)
* directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
* template[/opt/gitlab/sv/redis/log/config] action create (up to date)
* ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due
to action :nothing)
* link[/var/log/gitlab/redis/config] action create (up to date)
* template[/opt/gitlab/sv/redis/log/run] action create (up to date)
* directory[/opt/gitlab/sv/redis/env] action create (up to date)
* ruby_block[Delete unmanaged env files for redis service] action run (ski
pped due to only_if)
* template[/opt/gitlab/sv/redis/check] action create (skipped due to only_
if)
* template[/opt/gitlab/sv/redis/finish] action create (skipped due to only
_if)
* directory[/opt/gitlab/sv/redis/control] action create (up to date)
* link[/opt/gitlab/init/redis] action create (up to date)
* file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :n
othing)
* ruby_block[restart_service] action run
* ruby_block[restart_service] action nothing (skipped due to action :not
hing)
* ruby_block[restart_log_service] action nothing (skipped due to action
:nothing)
* ruby_block[reload_log_service] action nothing (skipped due to action :
nothing)
* directory[/opt/gitlab/sv/redis] action create (up to date)
* template[/opt/gitlab/sv/redis/run] action create (up to date)
* directory[/opt/gitlab/sv/redis/log] action create (up to date)
* directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
* template[/opt/gitlab/sv/redis/log/config] action create (up to date)
* ruby_block[verify_chown_persisted_on_redis] action nothing (skipped du
e to action :nothing)
* link[/var/log/gitlab/redis/config] action create (up to date)
* template[/opt/gitlab/sv/redis/log/run] action create (up to date)
* directory[/opt/gitlab/sv/redis/env] action create (up to date)
* ruby_block[Delete unmanaged env files for redis service] action run (s
kipped due to only_if)
* template[/opt/gitlab/sv/redis/check] action create (skipped due to onl
y_if)
* template[/opt/gitlab/sv/redis/finish] action create (skipped due to on
ly_if)
* directory[/opt/gitlab/sv/redis/control] action create (up to date)
* link[/opt/gitlab/init/redis] action create (up to date)
* file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action
:nothing)
* directory[/opt/gitlab/service] action create (up to date)
* link[/opt/gitlab/service/redis] action create (up to date)
* ruby_block[wait for redis service socket] action run (skipped due to n
ot_if)
- execute the ruby block restart_service
* directory[/opt/gitlab/service] action create (up to date)
* link[/opt/gitlab/service/redis] action create (up to date)
* ruby_block[wait for redis service socket] action run (skipped due to not
_if)
* ruby_block[warn pending redis restart] action run
==========================================================================
======
Error executing action `run` on resource 'ruby_block[warn pending redis re
start]'
==========================================================================
======
RuntimeError
------------
Execution of the command `/opt/gitlab/embedded/bin/redis-cli -s /var/opt/g
itlab/redis/redis.socket INFO` failed with a non-zero exit code (1)
stdout:
stderr: Could not connect to Redis at /var/opt/gitlab/redis/redis.socket:
No such file or directory
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/v
ersion_helper.rb:16:in `version'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/redis_help
er.rb:65:in `running_version'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/resources/service.rb:
76:in `block (3 levels) in class_from_file'
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/resources/servic
e.rb
66: ruby_block 'warn pending redis restart' do
67: block do
68: message = <<~MESSAGE
69: The version of the running redis service is different than wh
at is installed.
70: Please restart redis to start the new version.
71:
72: sudo gitlab-ctl restart redis
73: MESSAGE
74: LoggingHelper.warning(message)
75: end
76: only_if { new_resource.redis_helper.running_version != new_resour
ce.redis_helper.installed_version }
77: end
78: end
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/resourc
es/service.rb:66:in `block in class_from_file'
ruby_block("warn pending redis restart") do
action [:run]
default_guard_interpreter :default
declared_type :ruby_block
cookbook_name "redis"
block #<Proc:0x000055dd90c2a9c0 /opt/gitlab/embedded/cookbooks/cache/coo
kbooks/redis/resources/service.rb:67>
block_name "warn pending redis restart"
only_if { #code block }
end
System Info:
------------
chef_version=15.17.4
platform=debian
platform_version=9
ruby=ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client
============================================================================
====
Error executing action `create` on resource 'redis_service[redis]'
============================================================================
====
RuntimeError
------------
ruby_block[warn pending redis restart] (/opt/gitlab/embedded/cookbooks/cache
/cookbooks/redis/resources/service.rb line 66) had an error: RuntimeError: Execu
tion of the command `/opt/gitlab/embedded/bin/redis-cli -s /var/opt/gitlab/redis
/redis.socket INFO` failed with a non-zero exit code (1)
stdout:
stderr: Could not connect to Redis at /var/opt/gitlab/redis/redis.socket: No
such file or directory
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/ver
sion_helper.rb:16:in `version'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/redis_helper
.rb:65:in `running_version'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/resources/service.rb:76
:in `block (3 levels) in class_from_file'
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/recipes/enable.rb
19: redis_service 'redis' do
20: socket_group AccountHelper.new(node).gitlab_group
21: end
22:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/recipes/e
nable.rb:19:in `from_file'
redis_service("redis") do
action [:create]
updated true
updated_by_last_action true
default_guard_interpreter :default
declared_type :redis_service
cookbook_name "redis"
recipe_name "enable"
socket_group "git"
...
end
System Info:
------------
chef_version=15.17.4
platform=debian
platform_version=9
ruby=ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run
- execute /opt/gitlab/bin/gitlab-rake cache:clear
Running handlers:
There was an error running gitlab-ctl reconfigure:
redis_service[redis] (redis::enable line 19) had an error: RuntimeError: ruby_bl
ock[warn pending redis restart] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/
redis/resources/service.rb line 66) had an error: RuntimeError: Execution of the
command `/opt/gitlab/embedded/bin/redis-cli -s /var/opt/gitlab/redis/redis.sock
et INFO` failed with a non-zero exit code (1)
stdout:
stderr: Could not connect to Redis at /var/opt/gitlab/redis/redis.socket: No suc
h file or directory
Deprecations:
Your OS, debian-9, will be deprecated soon.
Starting with GitLab 15.2, packages will not be built for it.
Switch or upgrade to a supported OS, see https://docs.gitlab.com/omnibus/package
-information/deprecated_os.html for more information.
Notes:
Found old initial root password file at /etc/gitlab/initial_root_password and de
leted it.
Running handlers complete
Cinc Client failed. 10 resources updated in 02 minutes 55 seconds
Deprecations:
Your OS, debian-9, will be deprecated soon.
Starting with GitLab 15.2, packages will not be built for it.
Switch or upgrade to a supported OS, see https://docs.gitlab.com/omnibus/package
-information/deprecated_os.html for more information.
Notes:
Found old initial root password file at /etc/gitlab/initial_root_password and de
leted it.
===
There was an error running gitlab-ctl reconfigure. Please check the output above
for more
details.
===
dpkg: error processing package gitlab-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gitlab-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
To overcome this issue and conclude the upgrade, I proceed with the following actions:
- gitlab-ctl upgrade
- dpkg --configure -a
- gitlab-ctl restart
- gitlab-ctl reconfigure
Afterwards, I try upgrading to v15.1.6 from v15.0.5, which is completed without any errors.
The above error is reproducible in my setup. I have downgraded and retried the upgrade many times and this error occurs every single time. I have also reproduced the error in a different identical VM.
Steps to reproduce
- Provision an identical VM, with the specification provided below.
- Install gitlab-ce v14.10.5 package
- apt upgrade to gitlab-ce v15.0.5
What is the current bug behavior?
Seems that GitLab cannot connect to Redis to check running and installed version, so the upgrade procedure breaks with the error posted above.
What is the expected correct behavior?
GitLab should be able to connect to Redis and check running and installed version. These two should match, Redis version does not change in the newer package. The upgrade procedure should finish with no errors.
Relevant logs
Upgrade procedure started 13:42 (UTC+3) and finished with error 13:57 (UTC+3). Relevant redis logs:
2022-09-14_10:33:27.34552 15755:M 14 Sep 2022 13:33:27.345 * Background saving terminated with success
2022-09-14_10:38:28.01886 15755:M 14 Sep 2022 13:38:28.018 * 10 changes in 300 seconds. Saving...
2022-09-14_10:38:28.01953 15755:M 14 Sep 2022 13:38:28.019 * Background saving started by pid 27729
2022-09-14_10:38:28.20158 27729:C 14 Sep 2022 13:38:28.201 * DB saved on disk
2022-09-14_10:38:28.20272 27729:C 14 Sep 2022 13:38:28.202 * RDB: 2 MB of memory used by copy-on-write
2022-09-14_10:38:28.22109 15755:M 14 Sep 2022 13:38:28.220 * Background saving terminated with success
2022-09-14_10:43:29.03144 15755:M 14 Sep 2022 13:43:29.031 * 10 changes in 300 seconds. Saving...
2022-09-14_10:43:29.03201 15755:M 14 Sep 2022 13:43:29.031 * Background saving started by pid 29830
2022-09-14_10:43:29.43759 29830:C 14 Sep 2022 13:43:29.437 * DB saved on disk
2022-09-14_10:43:29.43821 29830:C 14 Sep 2022 13:43:29.438 * RDB: 3 MB of memory used by copy-on-write
2022-09-14_10:43:29.53561 15755:M 14 Sep 2022 13:43:29.535 * Background saving terminated with success
2022-09-14_10:48:30.07676 15755:M 14 Sep 2022 13:48:30.076 * 10 changes in 300 seconds. Saving...
2022-09-14_10:48:30.21661 15755:M 14 Sep 2022 13:48:30.077 * Background saving started by pid 30764
2022-09-14_10:48:30.91666 30764:C 14 Sep 2022 13:48:30.916 * DB saved on disk
2022-09-14_10:48:30.91737 30764:C 14 Sep 2022 13:48:30.917 * RDB: 4 MB of memory used by copy-on-write
2022-09-14_10:48:30.98297 15755:M 14 Sep 2022 13:48:30.982 * Background saving terminated with success
2022-09-14_10:53:31.02475 15755:M 14 Sep 2022 13:53:31.024 * 10 changes in 300 seconds. Saving...
2022-09-14_10:53:31.06732 15755:M 14 Sep 2022 13:53:31.025 * Background saving started by pid 8716
2022-09-14_10:53:31.66489 8716:C 14 Sep 2022 13:53:31.664 * DB saved on disk
2022-09-14_10:53:31.66590 8716:C 14 Sep 2022 13:53:31.665 * RDB: 4 MB of memory used by copy-on-write
2022-09-14_10:53:31.73120 15755:M 14 Sep 2022 13:53:31.731 * Background saving terminated with success
2022-09-14_10:54:30.04444 15755:signal-handler (1663152870) Received SIGTERM scheduling shutdown...
2022-09-14_10:54:30.14028 15755:M 14 Sep 2022 13:54:30.140 # User requested shutdown...
2022-09-14_10:54:30.14030 15755:M 14 Sep 2022 13:54:30.140 * Saving the final RDB snapshot before exiting.
2022-09-14_10:54:30.41088 15755:M 14 Sep 2022 13:54:30.410 * DB saved on disk
2022-09-14_10:54:30.41091 15755:M 14 Sep 2022 13:54:30.410 * Removing the pid file.
2022-09-14_10:54:30.41092 15755:M 14 Sep 2022 13:54:30.410 * Removing the unix socket file.
2022-09-14_10:54:30.41094 15755:M 14 Sep 2022 13:54:30.410 # Redis is now ready to exit, bye bye...
2022-09-14_10:54:31.57548 9135:C 14 Sep 2022 13:54:31.575 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2022-09-14_10:54:31.57551 9135:C 14 Sep 2022 13:54:31.575 # Redis version=6.2.6, bits=64, commit=4930d19e, modified=1, pid=9135, just started
2022-09-14_10:54:31.57551 9135:C 14 Sep 2022 13:54:31.575 # Configuration loaded
2022-09-14_10:54:31.57660 9135:M 14 Sep 2022 13:54:31.576 * monotonic clock: POSIX clock_gettime
2022-09-14_10:54:31.62428 _._
2022-09-14_10:54:31.62430 _.-``__ ''-._
2022-09-14_10:54:31.62430 _.-`` `. `_. ''-._ Redis 6.2.6 (4930d19e/1) 64 bit
2022-09-14_10:54:31.62431 .-`` .-```. ```\/ _.,_ ''-._
2022-09-14_10:54:31.62431 ( ' , .-` | `, ) Running in standalone mode
2022-09-14_10:54:31.62432 |`-._`-...-` __...-.``-._|'` _.-'| Port: 0
2022-09-14_10:54:31.62432 | `-._ `._ / _.-' | PID: 9135
2022-09-14_10:54:31.62433 `-._ `-._ `-./ _.-' _.-'
2022-09-14_10:54:31.62433 |`-._`-._ `-.__.-' _.-'_.-'|
2022-09-14_10:54:31.62434 | `-._`-._ _.-'_.-' | https://redis.io
2022-09-14_10:54:31.62434 `-._ `-._`-.__.-'_.-' _.-'
2022-09-14_10:54:31.62434 |`-._`-._ `-.__.-' _.-'_.-'|
2022-09-14_10:54:31.62435 | `-._`-._ _.-'_.-' |
2022-09-14_10:54:31.62435 `-._ `-._`-.__.-'_.-' _.-'
2022-09-14_10:54:31.62436 `-._ `-.__.-' _.-'
2022-09-14_10:54:31.62436 `-._ _.-'
2022-09-14_10:54:31.62438 `-.__.-'
2022-09-14_10:54:31.62439
2022-09-14_10:54:31.62440 9135:M 14 Sep 2022 13:54:31.624 # Server initialized
2022-09-14_10:54:31.62441 9135:M 14 Sep 2022 13:54:31.624 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
2022-09-14_10:54:31.62496 9135:M 14 Sep 2022 13:54:31.624 * Loading RDB produced by version 6.2.6
2022-09-14_10:54:31.62498 9135:M 14 Sep 2022 13:54:31.624 * RDB age 1 seconds
2022-09-14_10:54:31.62498 9135:M 14 Sep 2022 13:54:31.624 * RDB memory usage when created 2.08 Mb
2022-09-14_10:54:31.63736 9135:M 14 Sep 2022 13:54:31.637 # Done loading RDB, keys loaded: 632, keys expired: 0.
2022-09-14_10:54:31.63738 9135:M 14 Sep 2022 13:54:31.637 * DB loaded from disk: 0.012 seconds
2022-09-14_10:54:31.63738 9135:M 14 Sep 2022 13:54:31.637 * The server is now ready to accept connections at /var/opt/gitlab/redis/redis.socket
2022-09-14_10:59:32.02587 9135:M 14 Sep 2022 13:59:32.025 * 10 changes in 300 seconds. Saving...
2022-09-14_10:59:32.02590 9135:M 14 Sep 2022 13:59:32.025 * Background saving started by pid 10104
2022-09-14_10:59:32.54139 10104:C 14 Sep 2022 13:59:32.541 * DB saved on disk
2022-09-14_10:59:32.54212 10104:C 14 Sep 2022 13:59:32.542 * RDB: 0 MB of memory used by copy-on-write
2022-09-14_10:59:32.62800 9135:M 14 Sep 2022 13:59:32.627 * Background saving terminated with success
Details of package version
[#]> dpkg-query -l "gitlab-*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii gitlab-ce 14.10.5-ce.0 amd64 GitLab Community Edition (includi
un gitlab-ee <none> <none> (no description available)
un gitlab-fips <none> <none> (no description available)
Environment details
- Operating System:
Debian “stretch” 9.13
- Installation Target, remove incorrect values:
- VM: Other:
QEMU VM instance running on private cloud
- VM: Other:
- Installation Type, remove incorrect values:
- Upgrade from version
gitlab-ce v14.10.5
- Upgrade from version
- Is there any other software running on the machine:
no
- Is this a single or multiple node installation?
single
- Resources
- CPU: 8 vCPUs
- Memory total: 8G
Configuration details
Relevant sections of /etc/gitlab/gitlab.rb
:
## Url on which GitLab will be reachable.
external_url 'https://my.gitlab.changeme.gr'
############################
# gitlab.yml configuration #
############################
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {"ldapadmin"=>{"active_directory"=>false, "allow_username_or_email_login"=>true, "base"=>"CHANGEME", "block_auto_created_users"=>false, "host"=>"CHANGEME", "label"=>"CHANGEME", "method"=>"tls", "port"=>389, "uid"=>"uid"}}
gitlab_rails['monitoring_whitelist'] = ["X.X.X.X", "X:X:X:X::XXX", "X.X.X.X", "X:X:X:X::XXX"]
################
# GitLab Nginx #
################
nginx['listen_addresses'] = ["X.X.X.X", "[X:X:X:X::XXX]"]
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/path/to/dir"
nginx['ssl_certificate_key'] = "/path/to/dir"
######################
# GitLab Letsencrypt #
######################
letsencrypt['enable'] = false
##############
# Prometheus #
##############
prometheus_monitoring['enable'] = false