I’m doing a POC to have High-availability of Gitlab.
I’ve installed the latest version 11
On this page: https://docs.gitlab.com/ee/administration/high_availability/database.html#consul-information we have the following for the consul component:
# Disable all components except Consul
roles ['consul_role']
# START user configuration
# Replace placeholders:
#
# Y.Y.Y.Y consul1.gitlab.example.com Z.Z.Z.Z
# with the addresses gathered for CONSUL_SERVER_NODES
consul['configuration'] = {
server: true,
retry_join: %w(Y.Y.Y.Y consul1.gitlab.example.com Z.Z.Z.Z)
}
# Disable auto migrations
gitlab_rails['auto_migrate'] = false
#
# END user configuration
The /etc/gitlab/gitlab.rb has the following options for consul
################################################################################ # Consul (EEP only) ################################################################################ # consul['enable'] = true # consul['dir'] = '/var/opt/gitlab/consul' # consul['user'] = 'gitlab-consul' # consul['config_file'] = '/var/opt/gitlab/consul/config.json' # consul['config_dir'] = '/var/opt/gitlab/consul/config.d' # consul['data_dir'] = '/var/opt/gitlab/consul/data' # consul['log_directory'] = '/var/log/gitlab/consul' # consul['node_name'] = nil # consul['script_directory'] = '/var/opt/gitlab/consul/scripts' consul['configuration'] = { # 'client_addr' => nil, # 'datacenter' => 'gitlab_consul', # 'enable_script_checks' => true, 'server' => true } # consul['services'] = [] # consul['service_config'] = { # 'postgresql' => { # 'service' => { # 'name' => "postgresql", # 'address' => '', # 'port' => 5432, # 'checks' => [ # { # 'script' => "/var/opt/gitlab/consul/scripts/check_postgresql", # 'interval' => "10s" # } # ] # } # } # } # consul['watchers'] = { # 'postgresql' => { # enable: false, # handler: 'failover_pgbouncer' # } # }
where can I find the documentation that reflects the config for version 11 of gitlab?
Thank you