Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Avoid running unnecessary services on the Sidekiq server
- gitaly['enable'] = true
- postgresql['enable'] = true
- redis['enable'] = true
- puma['enable'] = false
- gitlab_workhorse['enable'] = false
- prometheus['enable'] = false
- alertmanager['enable'] = true
- grafana['enable'] = false
- gitlab_exporter['enable'] = false
- nginx['enable'] = true
- # Redis
- ## Redis connection details
- ## First cluster that will host the cache
- gitlab_rails['redis_cache_instance'] = 'redis://:<REDIS_PRIMARY_PASSWORD_OF_FIRST_CLUSTER>@gitlab-redis-cache'
- gitlab_rails['redis_cache_sentinels'] = [
- {host: '10.6.0.71', port: 26379},
- {host: '10.6.0.72', port: 26379},
- {host: '10.6.0.73', port: 26379},
- ]
- ## Second cluster that will host the queues, shared state, and actioncable
- gitlab_rails['redis_queues_instance'] = 'redis://:<REDIS_PRIMARY_PASSWORD_OF_SECOND_CLUSTER>@gitlab-redis-persistent'
- gitlab_rails['redis_shared_state_instance'] = 'redis://:<REDIS_PRIMARY_PASSWORD_OF_SECOND_CLUSTER>@gitlab-redis-persistent'
- gitlab_rails['redis_actioncable_instance'] = 'redis://:<REDIS_PRIMARY_PASSWORD_OF_SECOND_CLUSTER>@gitlab-redis-persistent'
- gitlab_rails['redis_queues_sentinels'] = [
- {host: '10.6.0.81', port: 26379},
- {host: '10.6.0.82', port: 26379},
- {host: '10.6.0.83', port: 26379},
- ]
- gitlab_rails['redis_shared_state_sentinels'] = [
- {host: '10.6.0.81', port: 26379},
- {host: '10.6.0.82', port: 26379},
- {host: '10.6.0.83', port: 26379},
- ]
- gitlab_rails['redis_actioncable_sentinels'] = [
- {host: '10.6.0.81', port: 26379},
- {host: '10.6.0.82', port: 26379},
- {host: '10.6.0.83', port: 26379},
- ]
- # Gitaly
- # git_data_dirs get configured for the Praefect virtual storage
- # Address is Internal Load Balancer for Praefect
- # Token is praefect_external_token
- git_data_dirs({
- "default" => {
- "gitaly_address" => "tcp://10.6.0.40:2305", # internal load balancer IP
- "gitaly_token" => '<praefect_external_token>'
- }
- })
- # PostgreSQL
- gitlab_rails['db_host'] = '10.6.0.20' # internal load balancer IP
- gitlab_rails['db_port'] = 6432
- gitlab_rails['db_password'] = '<postgresql_user_password>'
- gitlab_rails['db_adapter'] = 'postgresql'
- gitlab_rails['db_encoding'] = 'unicode'
- ## Prevent database migrations from running on upgrade automatically
- gitlab_rails['auto_migrate'] = false
- # Sidekiq
- sidekiq['enable'] = true
- sidekiq['listen_address'] = "0.0.0.0"
- ## Set number of Sidekiq queue processes to the same number as available CPUs
- sidekiq['queue_groups'] = ['*'] * 4
- ## Set number of Sidekiq threads per queue process to the recommend number of 10
- sidekiq['max_concurrency'] = 10
- # Monitoring
- consul['enable'] = true
- consul['monitoring_service_discovery'] = true
- consul['configuration'] = {
- retry_join: %w(10.6.0.11 10.6.0.12 10.6.0.13)
- }
- # Set the network addresses that the exporters will listen on
- node_exporter['listen_address'] = '127.0.0.1:9001'
- ## Add the monitoring node's IP address to the monitoring whitelist
- gitlab_rails['monitoring_whitelist'] = ['10.6.0.151/32', '127.0.0.0/8']
- # Object storage
- ## This is an example for configuring Object Storage on GCP
- ## Replace this config with your chosen Object Storage provider as desired
- gitlab_rails['object_store']['connection'] = {
- 'provider' => 'Google',
- 'google_project' => '<gcp-project-name>',
- 'google_json_key_location' => '<path-to-gcp-service-account-key>'
- }
- gitlab_rails['object_store']['objects']['artifacts']['bucket'] = "<gcp-artifacts-bucket-name>"
- gitlab_rails['object_store']['objects']['external_diffs']['bucket'] = "<gcp-external-diffs-bucket-name>"
- gitlab_rails['object_store']['objects']['lfs']['bucket'] = "<gcp-lfs-bucket-name>"
- gitlab_rails['object_store']['objects']['uploads']['bucket'] = "<gcp-uploads-bucket-name>"
- gitlab_rails['object_store']['objects']['packages']['bucket'] = "<gcp-packages-bucket-name>"
- gitlab_rails['object_store']['objects']['dependency_proxy']['bucket'] = "<gcp-dependency-proxy-bucket-name>"
- gitlab_rails['object_store']['objects']['terraform_state']['bucket'] = "<gcp-terraform-state-bucket-name>"
- gitlab_rails['backup_upload_connection'] = {
- 'provider' => 'Google',
- 'google_project' => '<gcp-project-name>',
- 'google_json_key_location' => '<path-to-gcp-service-account-key>'
- }
- gitlab_rails['backup_upload_remote_directory'] = "<gcp-backups-state-bucket-name>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement