Advertisement
AtomicOs

gitlab.rb

Jun 24th, 2021
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.49 KB | None | 0 0
  1. # Avoid running unnecessary services on the Praefect server
  2. gitaly['enable'] = true
  3. postgresql['enable'] = true
  4. redis['enable'] = false
  5. puma['enable'] = false
  6. sidekiq['enable'] = false
  7. gitlab_workhorse['enable'] = true
  8. prometheus['enable'] = false
  9. alertmanager['enable'] = true
  10. grafana['enable'] = false
  11. gitlab_exporter['enable'] = false
  12. nginx['enable'] = true
  13.  
  14. # Praefect Configuration
  15. praefect['enable'] = true
  16. praefect['listen_addr'] = '127.0.0.1:2305'
  17.  
  18. # Prevent database migrations from running on upgrade automatically
  19. praefect['auto_migrate'] = false
  20. gitlab_rails['auto_migrate'] = false
  21.  
  22. # Configure the Consul agent
  23. consul['enable'] = true
  24. ## Enable service discovery for Prometheus
  25. consul['monitoring_service_discovery'] =  true
  26.  
  27. # START user configuration
  28. # Please set the real values as explained in Required Information section
  29. #
  30.  
  31. # Praefect External Token
  32. # This is needed by clients outside the cluster (like GitLab Shell) to communicate with the Praefect cluster
  33. praefect['auth_token'] = '<praefect_external_token>'
  34.  
  35. # Praefect Database Settings
  36. praefect['database_host'] = '10.6.0.141'
  37. praefect['database_port'] = 5432
  38. # `no_proxy` settings must always be a direct connection for caching
  39. praefect['database_host_no_proxy'] = '10.6.0.141'
  40. praefect['database_port_no_proxy'] = 5432
  41. praefect['database_dbname'] = 'praefect_production'
  42. praefect['database_user'] = 'praefect'
  43. praefect['database_password'] = '<praefect_postgresql_password>'
  44.  
  45. # Praefect Virtual Storage config
  46. # Name of storage hash must match storage name in git_data_dirs on GitLab
  47. # server ('praefect') and in git_data_dirs on Gitaly nodes ('gitaly-1')
  48. praefect['virtual_storages'] = {
  49.   'default' => {
  50.     'nodes' => {
  51.       'gitaly-1' => {
  52.         'address' => 'tcp://10.6.0.91:8005',
  53.         'token'   => '<praefect_internal_token>'
  54.       },
  55.       'gitaly-2' => {
  56.         'address' => 'tcp://10.6.0.92:8005',
  57.         'token'   => '<praefect_internal_token>'
  58.       },
  59.       'gitaly-3' => {
  60.         'address' => 'tcp://10.6.0.93:8005',
  61.         'token'   => '<praefect_internal_token>'
  62.       },
  63.     }
  64.   }
  65. }
  66.  
  67. # Set the network addresses that the exporters will listen on for monitoring
  68. node_exporter['listen_address'] = '127.0.0.1:9000'
  69. praefect['prometheus_listen_addr'] = '127.0.0.1:9652'
  70.  
  71. ## The IPs of the Consul server nodes
  72. ## You can also use FQDNs and intermix them with IPs
  73. consul['configuration'] = {
  74.    retry_join: %w(10.6.0.11 10.6.0.12 10.6.0.13),
  75. }
  76. #
  77. # END user configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement