Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2406 lines
102 KiB

style and variables refactoring - Coherent quotation style Single quotes for text variable (even if implicit), no quotes for variable and conditional statements, if not required. - Some useful tags added: * ssh_certs renewal of server SSH certificates and configuration of authorized CA. * tls_pub renewal of public TLS certificates (let's encrypt) and certbot configuration. * tls_int renewal of internal TLS certificates (service authorizations) and configuration of authorized internal CA. *(ToDo: deployment of Certificate Revokation Lists)* * lxc deployment of new containers (deployment of configuration file excluded, for instance change in ip address are always applied and trigger a container restart even if you skip this tag. * packages installation and upgrade of software packages (apt, opkg or tarballs) * service_password create new random password for services-only password, for routine rotation. Not meant to be skipped (some roles need to know the service password, so they do a rotation). - prepare_host - ssh_server - lxc_guest - ldap - gitlab - x509_subject_prefix - x509_ldap_suffix *Replaces:* x509_suffix in ldap.yaml - letsencrypt_email Used in roles/certbot and roles/gitlab - root_ca_cert *Replaces:* ssl_ca_cert and files/lilik_x1.crt New defaults: - ldap_domain | default: `${domain}` - server_fqdn | default: `${hostname}.dmz.${domain}` *Replaces:* fqdn_domain Removed: - fqdn_dmain - x509_suffix *Replaced by:* x509_ldap_suffix in common New defaults: - server_fqdn | default: `${hostname}.${domain}` *Replaces*: fqdn - ldap_domain | default: `${domain}` - ldap_server | default: `ldap1.dmz.${domain}` - ldap_basedn | default: `dn(${ldap_domain})` - enable_https | default: `true` New defaults: - server_fqdn | default: `${hostname}.${domain}`
5 years ago
  1. ## GitLab configuration settings
  2. ##! This file is generated during initial installation and **is not** modified
  3. ##! during upgrades.
  4. ##! Check out the latest version of this file to know about the different
  5. ##! settings that can be configured by this file, which may be found at:
  6. ##! https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/files/gitlab-config-template/gitlab.rb.template
  7. ##! You can run `gitlab-ctl diff-config` to compare the contents of the current gitlab.rb with
  8. ##! the gitlab.rb.template from the currently running version.
  9. ##! You can run `gitlab-ctl show-config` to display the configuration that will be generated by
  10. ##! running `gitlab-ctl reconfigure`
  11. ##! In general, the values specified here should reflect what the default value of the attribute will be.
  12. ##! There are instances where this behavior is not possible or desired. For example, when providing passwords,
  13. ##! or connecting to third party services.
  14. ##! In those instances, we endeavour to provide an example configuration.
  15. ## GitLab URL
  16. ##! URL on which GitLab will be reachable.
  17. ##! For more details on configuring external_url see:
  18. ##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
  19. ##!
  20. ##! Note: During installation/upgrades, the value of the environment variable
  21. ##! EXTERNAL_URL will be used to populate/replace this value.
  22. ##! On AWS EC2 instances, we also attempt to fetch the public hostname/IP
  23. ##! address from AWS. For more details, see:
  24. ##! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
  25. external_url 'http{{ 's' if gitlab_enable_https }}://{{ gitlab_nginx_main_fqdn }}'
  26. ## Roles for multi-instance GitLab
  27. ##! The default is to have no roles enabled, which results in GitLab running as an all-in-one instance.
  28. ##! Options:
  29. ##! redis_sentinel_role redis_master_role redis_slave_role geo_primary_role geo_secondary_role
  30. ##! For more details on each role, see:
  31. ##! https://docs.gitlab.com/omnibus/roles/README.html#roles
  32. ##!
  33. # roles ['redis_sentinel_role', 'redis_master_role']
  34. ## Legend
  35. ##! The following notations at the beginning of each line may be used to
  36. ##! differentiate between components of this file and to easily select them using
  37. ##! a regex.
  38. ##! ## Titles, subtitles etc
  39. ##! ##! More information - Description, Docs, Links, Issues etc.
  40. ##! Configuration settings have a single # followed by a single space at the
  41. ##! beginning; Remove them to enable the setting.
  42. ##! **Configuration settings below are optional.**
  43. ################################################################################
  44. ################################################################################
  45. ## Configuration Settings for GitLab CE and EE ##
  46. ################################################################################
  47. ################################################################################
  48. ################################################################################
  49. ## gitlab.yml configuration
  50. ##! Docs: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/gitlab.yml.md
  51. ################################################################################
  52. # gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
  53. # gitlab_rails['gitlab_ssh_user'] = ''
  54. # gitlab_rails['time_zone'] = 'UTC'
  55. ### Request duration
  56. ###! Tells the rails application how long it has to complete a request
  57. ###! This value needs to be lower than the worker timeout set in unicorn/puma.
  58. ###! By default, we'll allow 95% of the the worker timeout
  59. # gitlab_rails['max_request_duration_seconds'] = 57
  60. ### Email Settings
  61. # gitlab_rails['gitlab_email_enabled'] = true
  62. # gitlab_rails['gitlab_email_from'] = 'example@example.com'
  63. # gitlab_rails['gitlab_email_display_name'] = 'Example'
  64. # gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.com'
  65. # gitlab_rails['gitlab_email_subject_suffix'] = ''
  66. # gitlab_rails['gitlab_email_smime_enabled'] = false
  67. # gitlab_rails['gitlab_email_smime_key_file'] = '/etc/gitlab/ssl/gitlab_smime.key'
  68. # gitlab_rails['gitlab_email_smime_cert_file'] = '/etc/gitlab/ssl/gitlab_smime.crt'
  69. ### GitLab user privileges
  70. # gitlab_rails['gitlab_default_can_create_group'] = true
  71. # gitlab_rails['gitlab_username_changing_enabled'] = true
  72. ### Default Theme
  73. # gitlab_rails['gitlab_default_theme'] = 2
  74. ### Default project feature settings
  75. # gitlab_rails['gitlab_default_projects_features_issues'] = true
  76. # gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
  77. # gitlab_rails['gitlab_default_projects_features_wiki'] = true
  78. # gitlab_rails['gitlab_default_projects_features_snippets'] = true
  79. # gitlab_rails['gitlab_default_projects_features_builds'] = true
  80. # gitlab_rails['gitlab_default_projects_features_container_registry'] = true
  81. ### Automatic issue closing
  82. ###! See https://docs.gitlab.com/ee/customization/issue_closing.html for more
  83. ###! information about this pattern.
  84. # gitlab_rails['gitlab_issue_closing_pattern'] = "\b((?:[Cc]los(?:e[sd]?|ing)|\b[Ff]ix(?:e[sd]|ing)?|\b[Rr]esolv(?:e[sd]?|ing)|\b[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?)|([A-Z][A-Z0-9_]+-\d+))+)"
  85. ### Download location
  86. ###! When a user clicks e.g. 'Download zip' on a project, a temporary zip file
  87. ###! is created in the following directory.
  88. ###! Should not be the same path, or a sub directory of any of the `git_data_dirs`
  89. # gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
  90. ### Gravatar Settings
  91. # gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  92. # gitlab_rails['gravatar_ssl_url'] = 'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
  93. ### Auxiliary jobs
  94. ###! Periodically executed jobs, to self-heal Gitlab, do external
  95. ###! synchronizations, etc.
  96. ###! Docs: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job
  97. ###! https://docs.gitlab.com/ee/ci/yaml/README.html#artifactsexpire_in
  98. # gitlab_rails['stuck_ci_jobs_worker_cron'] = "0 0 * * *"
  99. # gitlab_rails['expire_build_artifacts_worker_cron'] = "50 * * * *"
  100. # gitlab_rails['environments_auto_stop_cron_worker_cron'] = "24 * * * *"
  101. # gitlab_rails['pipeline_schedule_worker_cron'] = "19 * * * *"
  102. # gitlab_rails['ci_archive_traces_cron_worker_cron'] = "17 * * * *"
  103. # gitlab_rails['repository_check_worker_cron'] = "20 * * * *"
  104. # gitlab_rails['admin_email_worker_cron'] = "0 0 * * 0"
  105. # gitlab_rails['personal_access_tokens_expiring_worker_cron'] = "0 1 * * *"
  106. # gitlab_rails['repository_archive_cache_worker_cron'] = "0 * * * *"
  107. # gitlab_rails['pages_domain_verification_cron_worker'] = "*/15 * * * *"
  108. # gitlab_rails['pages_domain_ssl_renewal_cron_worker'] = "*/10 * * * *"
  109. # gitlab_rails['pages_domain_removal_cron_worker'] = "47 0 * * *"
  110. # gitlab_rails['schedule_migrate_external_diffs_worker_cron'] = "15 * * * *"
  111. ### Webhook Settings
  112. ###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
  113. ###! request (default: 10)
  114. # gitlab_rails['webhook_timeout'] = 10
  115. ### GraphQL Settings
  116. ###! Tells the rails application how long it has to complete a GraphQL request.
  117. ###! We suggest this value to be higher than the database timeout value
  118. ###! and lower than the worker timeout set in unicorn/puma. (default: 30)
  119. # gitlab_rails['graphql_timeout'] = 30
  120. ### Trusted proxies
  121. ###! Customize if you have GitLab behind a reverse proxy which is running on a
  122. ###! different machine.
  123. ###! **Add the IP address for your reverse proxy to the list, otherwise users
  124. ###! will appear signed in from that address.**
  125. # gitlab_rails['trusted_proxies'] = []
  126. ### Content Security Policy
  127. ####! Customize if you want to enable the Content-Security-Policy header, which
  128. ####! can help thwart JavaScript cross-site scripting (XSS) attacks.
  129. ####! See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
  130. # gitlab_rails['content_security_policy'] = {
  131. # 'enabled' => false,
  132. # 'report_only' => false,
  133. # # Each directive is a String (e.g. "'self'").
  134. # 'directives' => {
  135. # 'base_uri' => nil,
  136. # 'child_src' => nil,
  137. # 'connect_src' => nil,
  138. # 'default_src' => nil,
  139. # 'font_src' => nil,
  140. # 'form_action' => nil,
  141. # 'frame_ancestors' => nil,
  142. # 'frame_src' => nil,
  143. # 'img_src' => nil,
  144. # 'manifest_src' => nil,
  145. # 'media_src' => nil,
  146. # 'object_src' => nil,
  147. # 'script_src' => nil,
  148. # 'style_src' => nil,
  149. # 'worker_src' => nil,
  150. # 'report_uri' => nil,
  151. # }
  152. # }
  153. ### Monitoring settings
  154. ###! IP whitelist controlling access to monitoring endpoints
  155. # gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8', '::1/128']
  156. ###! Time between sampling of unicorn socket metrics, in seconds
  157. # gitlab_rails['monitoring_unicorn_sampler_interval'] = 10
  158. ### Shutdown settings
  159. ###! Defines an interval to block healthcheck,
  160. ###! but continue accepting application requests.
  161. # gitlab_rails['shutdown_blackout_seconds'] = 10
  162. ### Reply by email
  163. ###! Allow users to comment on issues and merge requests by replying to
  164. ###! notification emails.
  165. ###! Docs: https://docs.gitlab.com/ee/administration/reply_by_email.html
  166. # gitlab_rails['incoming_email_enabled'] = true
  167. #### Incoming Email Address
  168. ####! The email address including the `%{key}` placeholder that will be replaced
  169. ####! to reference the item being replied to.
  170. ####! **The placeholder can be omitted but if present, it must appear in the
  171. ####! "user" part of the address (before the `@`).**
  172. # gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@gmail.com"
  173. #### Email account username
  174. ####! **With third party providers, this is usually the full email address.**
  175. ####! **With self-hosted email servers, this is usually the user part of the
  176. ####! email address.**
  177. # gitlab_rails['incoming_email_email'] = "gitlab-incoming@gmail.com"
  178. #### Email account password
  179. # gitlab_rails['incoming_email_password'] = "[REDACTED]"
  180. #### IMAP Settings
  181. # gitlab_rails['incoming_email_host'] = "imap.gmail.com"
  182. # gitlab_rails['incoming_email_port'] = 993
  183. # gitlab_rails['incoming_email_ssl'] = true
  184. # gitlab_rails['incoming_email_start_tls'] = false
  185. #### Incoming Mailbox Settings (via `mail_room`)
  186. ####! The mailbox where incoming mail will end up. Usually "inbox".
  187. # gitlab_rails['incoming_email_mailbox_name'] = "inbox"
  188. ####! The IDLE command timeout.
  189. # gitlab_rails['incoming_email_idle_timeout'] = 60
  190. ####! The file name for internal `mail_room` JSON logfile
  191. # gitlab_rails['incoming_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
  192. ####! The format of mail_room crash logs
  193. # mailroom['exit_log_format'] = "plain"
  194. ### Job Artifacts
  195. # gitlab_rails['artifacts_enabled'] = true
  196. # gitlab_rails['artifacts_path'] = "/var/opt/gitlab/gitlab-rails/shared/artifacts"
  197. ####! Job artifacts Object Store
  198. ####! Docs: https://docs.gitlab.com/ee/administration/job_artifacts.html#using-object-storage
  199. # gitlab_rails['artifacts_object_store_enabled'] = false
  200. # gitlab_rails['artifacts_object_store_direct_upload'] = false
  201. # gitlab_rails['artifacts_object_store_background_upload'] = true
  202. # gitlab_rails['artifacts_object_store_proxy_download'] = false
  203. # gitlab_rails['artifacts_object_store_remote_directory'] = "artifacts"
  204. # gitlab_rails['artifacts_object_store_connection'] = {
  205. # 'provider' => 'AWS',
  206. # 'region' => 'eu-west-1',
  207. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  208. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  209. # # # The below options configure an S3 compatible host instead of AWS
  210. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  211. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  212. # # 'host' => 's3.amazonaws.com',
  213. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  214. # }
  215. ### External merge request diffs
  216. # gitlab_rails['external_diffs_enabled'] = false
  217. # gitlab_rails['external_diffs_when'] = nil
  218. # gitlab_rails['external_diffs_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/external-diffs"
  219. # gitlab_rails['external_diffs_object_store_enabled'] = false
  220. # gitlab_rails['external_diffs_object_store_direct_upload'] = false
  221. # gitlab_rails['external_diffs_object_store_background_upload'] = false
  222. # gitlab_rails['external_diffs_object_store_proxy_download'] = false
  223. # gitlab_rails['external_diffs_object_store_remote_directory'] = "external-diffs"
  224. # gitlab_rails['external_diffs_object_store_connection'] = {
  225. # 'provider' => 'AWS',
  226. # 'region' => 'eu-west-1',
  227. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  228. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  229. # # # The below options configure an S3 compatible host instead of AWS
  230. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  231. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  232. # # 'host' => 's3.amazonaws.com',
  233. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  234. # }
  235. ### Git LFS
  236. # gitlab_rails['lfs_enabled'] = true
  237. # gitlab_rails['lfs_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/lfs-objects"
  238. # gitlab_rails['lfs_object_store_enabled'] = false
  239. # gitlab_rails['lfs_object_store_direct_upload'] = false
  240. # gitlab_rails['lfs_object_store_background_upload'] = true
  241. # gitlab_rails['lfs_object_store_proxy_download'] = false
  242. # gitlab_rails['lfs_object_store_remote_directory'] = "lfs-objects"
  243. # gitlab_rails['lfs_object_store_connection'] = {
  244. # 'provider' => 'AWS',
  245. # 'region' => 'eu-west-1',
  246. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  247. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  248. # # # The below options configure an S3 compatible host instead of AWS
  249. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  250. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  251. # # 'host' => 's3.amazonaws.com',
  252. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  253. # }
  254. ### GitLab uploads
  255. ###! Docs: https://docs.gitlab.com/ee/administration/uploads.html
  256. # gitlab_rails['uploads_storage_path'] = "/opt/gitlab/embedded/service/gitlab-rails/public"
  257. # gitlab_rails['uploads_base_dir'] = "uploads/-/system"
  258. # gitlab_rails['uploads_object_store_enabled'] = false
  259. # gitlab_rails['uploads_object_store_direct_upload'] = false
  260. # gitlab_rails['uploads_object_store_background_upload'] = true
  261. # gitlab_rails['uploads_object_store_proxy_download'] = false
  262. # gitlab_rails['uploads_object_store_remote_directory'] = "uploads"
  263. # gitlab_rails['uploads_object_store_connection'] = {
  264. # 'provider' => 'AWS',
  265. # 'region' => 'eu-west-1',
  266. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  267. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  268. # # # The below options configure an S3 compatible host instead of AWS
  269. # # 'host' => 's3.amazonaws.com',
  270. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  271. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  272. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  273. # }
  274. ### Impersonation settings
  275. # gitlab_rails['impersonation_enabled'] = true
  276. ### Usage Statistics
  277. # gitlab_rails['usage_ping_enabled'] = true
  278. ### Seat Link setting
  279. ###! Docs: https://docs.gitlab.com/ee/subscriptions/index.html#seat-link
  280. # gitlab_rails['seat_link_enabled'] = true
  281. ### GitLab Mattermost
  282. ###! These settings are void if Mattermost is installed on the same omnibus
  283. ###! install
  284. # gitlab_rails['mattermost_host'] = "https://mattermost.example.com"
  285. ### LDAP Settings
  286. ###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html
  287. ###! **Be careful not to break the indentation in the ldap_servers block. It is
  288. ###! in yaml format and the spaces must be retained. Using tabs will not work.**
  289. gitlab_rails['ldap_enabled'] = true
  290. gitlab_rails['prevent_ldap_sign_in'] = false
  291. ###! **remember to close this block with 'EOS' below**
  292. gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
  293. main: # 'main' is the GitLab 'provider ID' of this LDAP server
  294. label: 'LDAP'
  295. host: '{{ ldap_server }}'
  296. port: 389
  297. uid: 'cn'
  298. bind_dn: 'cn={{ host_fqdn }},ou=Server,{{ ldap_basedn }}'
  299. password: '{{ gitlab_ldap_passwd.passwd }}'
  300. encryption: 'start_tls' # "start_tls" or "simple_tls" or "plain"
  301. verify_certificates: true
  302. tls_options:
  303. ca_file: '/etc/gitlab/ldap_server_ca.crt'
  304. min_version: 772 # TLSv1.3
  305. # smartcard_auth: false
  306. # active_directory: true
  307. # allow_username_or_email_login: false
  308. # lowercase_usernames: false
  309. # block_auto_created_users: false
  310. base: 'ou=People,{{ ldap_basedn }}'
  311. user_filter: '(authorizedService=gitlab)'
  312. # ## EE only
  313. # group_base: ''
  314. # admin_group: ''
  315. # sync_ssh_keys: false
  316. #
  317. # secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
  318. # label: 'LDAP'
  319. # host: '_your_ldap_server'
  320. # port: 389
  321. # uid: 'sAMAccountName'
  322. # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  323. # password: '_the_password_of_the_bind_user'
  324. # encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
  325. # verify_certificates: true
  326. # smartcard_auth: false
  327. # active_directory: true
  328. # allow_username_or_email_login: false
  329. # lowercase_usernames: false
  330. # block_auto_created_users: false
  331. # base: ''
  332. # user_filter: ''
  333. # ## EE only
  334. # group_base: ''
  335. # admin_group: ''
  336. # sync_ssh_keys: false
  337. EOS
  338. ### Smartcard authentication settings
  339. ###! Docs: https://docs.gitlab.com/ee/administration/auth/smartcard.html
  340. # gitlab_rails['smartcard_enabled'] = false
  341. # gitlab_rails['smartcard_ca_file'] = "/etc/gitlab/ssl/CA.pem"
  342. # gitlab_rails['smartcard_client_certificate_required_host'] = 'smartcard.gitlab.example.com'
  343. # gitlab_rails['smartcard_client_certificate_required_port'] = 3444
  344. # gitlab_rails['smartcard_required_for_git_access'] = false
  345. # gitlab_rails['smartcard_san_extensions'] = false
  346. ### OmniAuth Settings
  347. ###! Docs: https://docs.gitlab.com/ee/integration/omniauth.html
  348. # gitlab_rails['omniauth_enabled'] = nil
  349. # gitlab_rails['omniauth_allow_single_sign_on'] = ['saml']
  350. # gitlab_rails['omniauth_sync_email_from_provider'] = 'saml'
  351. # gitlab_rails['omniauth_sync_profile_from_provider'] = ['saml']
  352. # gitlab_rails['omniauth_sync_profile_attributes'] = ['email']
  353. # gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'saml'
  354. # gitlab_rails['omniauth_block_auto_created_users'] = true
  355. # gitlab_rails['omniauth_auto_link_ldap_user'] = false
  356. # gitlab_rails['omniauth_auto_link_saml_user'] = false
  357. # gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2']
  358. # gitlab_rails['omniauth_allow_bypass_two_factor'] = ['google_oauth2']
  359. # gitlab_rails['omniauth_providers'] = [
  360. # {
  361. # "name" => "google_oauth2",
  362. # "app_id" => "YOUR APP ID",
  363. # "app_secret" => "YOUR APP SECRET",
  364. # "args" => { "access_type" => "offline", "approval_prompt" => "" }
  365. # }
  366. # ]
  367. ### Backup Settings
  368. ###! Docs: https://docs.gitlab.com/omnibus/settings/backups.html
  369. # gitlab_rails['manage_backup_path'] = true
  370. # gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
  371. ###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#backup-archive-permissions
  372. # gitlab_rails['backup_archive_permissions'] = 0644
  373. # gitlab_rails['backup_pg_schema'] = 'public'
  374. ###! The duration in seconds to keep backups before they are allowed to be deleted
  375. # gitlab_rails['backup_keep_time'] = 604800
  376. # gitlab_rails['backup_upload_connection'] = {
  377. # 'provider' => 'AWS',
  378. # 'region' => 'eu-west-1',
  379. # 'aws_access_key_id' => 'AKIAKIAKI',
  380. # 'aws_secret_access_key' => 'secret123'
  381. # }
  382. # gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'
  383. # gitlab_rails['backup_multipart_chunk_size'] = 104857600
  384. ###! **Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for
  385. ###! backups**
  386. # gitlab_rails['backup_encryption'] = 'AES256'
  387. ###! The encryption key to use with AWS Server-Side Encryption.
  388. ###! Setting this value will enable Server-Side Encryption with customer provided keys;
  389. ###! otherwise S3-managed keys are used.
  390. # gitlab_rails['backup_encryption_key'] = '<base64-encoded encryption key>'
  391. ###! **Specifies Amazon S3 storage class to use for backups. Valid values
  392. ###! include 'STANDARD', 'STANDARD_IA', and 'REDUCED_REDUNDANCY'**
  393. # gitlab_rails['backup_storage_class'] = 'STANDARD'
  394. ###! Skip parts of the backup. Comma separated.
  395. ###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup
  396. #gitlab_rails['env'] = {
  397. # "SKIP" => "db,uploads,repositories,builds,artifacts,lfs,registry,pages"
  398. #}
  399. ### Pseudonymizer Settings
  400. # gitlab_rails['pseudonymizer_manifest'] = 'config/pseudonymizer.yml'
  401. # gitlab_rails['pseudonymizer_upload_remote_directory'] = 'gitlab-elt'
  402. # gitlab_rails['pseudonymizer_upload_connection'] = {
  403. # 'provider' => 'AWS',
  404. # 'region' => 'eu-west-1',
  405. # 'aws_access_key_id' => 'AKIAKIAKI',
  406. # 'aws_secret_access_key' => 'secret123'
  407. # }
  408. ### For setting up different data storing directory
  409. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory
  410. ###! **If you want to use a single non-default directory to store git data use a
  411. ###! path that doesn't contain symlinks.**
  412. # git_data_dirs({
  413. # "default" => {
  414. # "path" => "/mnt/nfs-01/git-data"
  415. # }
  416. # })
  417. ### Gitaly settings
  418. # gitlab_rails['gitaly_token'] = 'secret token'
  419. ### For storing GitLab application uploads, eg. LFS objects, build artifacts
  420. ###! Docs: https://docs.gitlab.com/ee/development/shared_files.html
  421. # gitlab_rails['shared_path'] = '/var/opt/gitlab/gitlab-rails/shared'
  422. ### Wait for file system to be mounted
  423. ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#only-start-omnibus-gitlab-services-after-a-given-filesystem-is-mounted
  424. # high_availability['mountpoint'] = ["/var/opt/gitlab/git-data", "/var/opt/gitlab/gitlab-rails/shared"]
  425. ### GitLab Shell settings for GitLab
  426. # gitlab_rails['gitlab_shell_ssh_port'] = 22
  427. # gitlab_rails['gitlab_shell_git_timeout'] = 800
  428. ### Extra customization
  429. # gitlab_rails['extra_google_analytics_id'] = '_your_tracking_id'
  430. # gitlab_rails['extra_piwik_url'] = '_your_piwik_url'
  431. # gitlab_rails['extra_piwik_site_id'] = '_your_piwik_site_id'
  432. ##! Docs: https://docs.gitlab.com/omnibus/settings/environment-variables.html
  433. # gitlab_rails['env'] = {
  434. # 'BUNDLE_GEMFILE' => "/opt/gitlab/embedded/service/gitlab-rails/Gemfile",
  435. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
  436. # }
  437. # gitlab_rails['rack_attack_git_basic_auth'] = {
  438. # 'enabled' => false,
  439. # 'ip_whitelist' => ["127.0.0.1"],
  440. # 'maxretry' => 10,
  441. # 'findtime' => 60,
  442. # 'bantime' => 3600
  443. # }
  444. # Prioritize the Admin Area protected paths throttle settings over the
  445. # deprecated Omnibus-managed protected paths throttle. This allows you to keep
  446. # gitlab_rails['rack_attack_git_basic_auth'] enabled to run the Git and
  447. # container registry failed authentication ban.
  448. # See https://gitlab.com/gitlab-org/gitlab/issues/37093
  449. # gitlab_rails['rack_attack_admin_area_protected_paths_enabled'] = true
  450. ###! **We do not recommend changing these directories.**
  451. # gitlab_rails['dir'] = "/var/opt/gitlab/gitlab-rails"
  452. # gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
  453. ### GitLab application settings
  454. # gitlab_rails['uploads_directory'] = "/var/opt/gitlab/gitlab-rails/uploads"
  455. # gitlab_rails['rate_limit_requests_per_period'] = 10
  456. # gitlab_rails['rate_limit_period'] = 60
  457. #### Change the initial default admin password and shared runner registration tokens.
  458. ####! **Only applicable on initial setup, changing these settings after database
  459. ####! is created and seeded won't yield any change.**
  460. {% if gitlab_initial_root_password is defined %}
  461. gitlab_rails['initial_root_password'] = "{{ gitlab_initial_root_password }}"
  462. {% endif %}
  463. # gitlab_rails['initial_root_password'] = "password"
  464. # gitlab_rails['initial_shared_runners_registration_token'] = "token"
  465. #### Set path to an initial license to be used while bootstrapping GitLab.
  466. ####! **Only applicable on initial setup, future license updations need to be done via UI.
  467. ####! Updating the file specified in this path won't yield any change after the first reconfigure run.
  468. # gitlab_rails['initial_license_file'] = '/etc/gitlab/company.gitlab-license'
  469. #### Enable or disable automatic database migrations
  470. # gitlab_rails['auto_migrate'] = true
  471. #### This is advanced feature used by large gitlab deployments where loading
  472. #### whole RAILS env takes a lot of time.
  473. # gitlab_rails['rake_cache_clear'] = true
  474. ### GitLab database settings
  475. ###! Docs: https://docs.gitlab.com/omnibus/settings/database.html
  476. ###! **Only needed if you use an external database.**
  477. # gitlab_rails['db_adapter'] = "postgresql"
  478. # gitlab_rails['db_encoding'] = "unicode"
  479. # gitlab_rails['db_collation'] = nil
  480. # gitlab_rails['db_database'] = "gitlabhq_production"
  481. # gitlab_rails['db_pool'] = 1
  482. # gitlab_rails['db_username'] = "gitlab"
  483. # gitlab_rails['db_password'] = nil
  484. # gitlab_rails['db_host'] = nil
  485. # gitlab_rails['db_port'] = 5432
  486. # gitlab_rails['db_socket'] = nil
  487. # gitlab_rails['db_sslmode'] = nil
  488. # gitlab_rails['db_sslcompression'] = 0
  489. # gitlab_rails['db_sslrootcert'] = nil
  490. # gitlab_rails['db_sslcert'] = nil
  491. # gitlab_rails['db_sslkey'] = nil
  492. # gitlab_rails['db_prepared_statements'] = false
  493. # gitlab_rails['db_statements_limit'] = 1000
  494. ### GitLab Redis settings
  495. ###! Connect to your own Redis instance
  496. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  497. #### Redis TCP connection
  498. # gitlab_rails['redis_host'] = "127.0.0.1"
  499. # gitlab_rails['redis_port'] = 6379
  500. # gitlab_rails['redis_ssl'] = false
  501. # gitlab_rails['redis_password'] = nil
  502. # gitlab_rails['redis_database'] = 0
  503. # gitlab_rails['redis_enable_client'] = true
  504. #### Redis local UNIX socket (will be disabled if TCP method is used)
  505. # gitlab_rails['redis_socket'] = "/var/opt/gitlab/redis/redis.socket"
  506. #### Sentinel support
  507. ####! To have Sentinel working, you must enable Redis TCP connection support
  508. ####! above and define a few Sentinel hosts below (to get a reliable setup
  509. ####! at least 3 hosts).
  510. ####! **You don't need to list every sentinel host, but the ones not listed will
  511. ####! not be used in a fail-over situation to query for the new master.**
  512. # gitlab_rails['redis_sentinels'] = [
  513. # {'host' => '127.0.0.1', 'port' => 26379},
  514. # ]
  515. #### Separate instances support
  516. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html#running-with-multiple-redis-instances
  517. # gitlab_rails['redis_cache_instance'] = nil
  518. # gitlab_rails['redis_cache_sentinels'] = nil
  519. # gitlab_rails['redis_queues_instance'] = nil
  520. # gitlab_rails['redis_queues_sentinels'] = nil
  521. # gitlab_rails['redis_shared_state_instance'] = nil
  522. # gitlab_rails['redis_shared_sentinels'] = nil
  523. ### GitLab email server settings
  524. ###! Docs: https://docs.gitlab.com/omnibus/settings/smtp.html
  525. ###! **Use smtp instead of sendmail/postfix.**
  526. # gitlab_rails['smtp_enable'] = true
  527. # gitlab_rails['smtp_address'] = "smtp.server"
  528. # gitlab_rails['smtp_port'] = 465
  529. # gitlab_rails['smtp_user_name'] = "smtp user"
  530. # gitlab_rails['smtp_password'] = "smtp password"
  531. # gitlab_rails['smtp_domain'] = "example.com"
  532. # gitlab_rails['smtp_authentication'] = "login"
  533. # gitlab_rails['smtp_enable_starttls_auto'] = true
  534. # gitlab_rails['smtp_tls'] = false
  535. ###! **Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert'**
  536. ###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html
  537. # gitlab_rails['smtp_openssl_verify_mode'] = 'none'
  538. # gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
  539. # gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"
  540. ################################################################################
  541. ## Container Registry settings
  542. ##! Docs: https://docs.gitlab.com/ee/administration/container_registry.html
  543. ################################################################################
  544. # registry_external_url 'https://registry.example.com'
  545. ### Settings used by GitLab application
  546. # gitlab_rails['registry_enabled'] = true
  547. # gitlab_rails['registry_host'] = "registry.gitlab.example.com"
  548. # gitlab_rails['registry_port'] = "5005"
  549. # gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
  550. # Notification secret, it's used to authenticate notification requests to GitLab application
  551. # You only need to change this when you use external Registry service, otherwise
  552. # it will be taken directly from notification settings of your Registry
  553. # gitlab_rails['registry_notification_secret'] = nil
  554. ###! **Do not change the following 3 settings unless you know what you are
  555. ###! doing**
  556. # gitlab_rails['registry_api_url'] = "http://localhost:5000"
  557. # gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
  558. # gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
  559. ### Settings used by Registry application
  560. # registry['enable'] = true
  561. # registry['username'] = "registry"
  562. # registry['group'] = "registry"
  563. # registry['uid'] = nil
  564. # registry['gid'] = nil
  565. # registry['dir'] = "/var/opt/gitlab/registry"
  566. # registry['registry_http_addr'] = "localhost:5000"
  567. # registry['debug_addr'] = "localhost:5001"
  568. # registry['log_directory'] = "/var/log/gitlab/registry"
  569. # registry['env_directory'] = "/opt/gitlab/etc/registry/env"
  570. # registry['env'] = {
  571. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  572. # }
  573. # registry['log_level'] = "info"
  574. # registry['log_formatter'] = "text"
  575. # registry['rootcertbundle'] = "/var/opt/gitlab/registry/certificate.crt"
  576. # registry['health_storagedriver_enabled'] = true
  577. # registry['storage_delete_enabled'] = true
  578. # registry['validation_enabled'] = false
  579. # registry['autoredirect'] = false
  580. # registry['compatibility_schema1_enabled'] = false
  581. ### Registry backend storage
  582. ###! Docs: https://docs.gitlab.com/ee/administration/container_registry.html#container-registry-storage-driver
  583. # registry['storage'] = {
  584. # 's3' => {
  585. # 'accesskey' => 'AKIAKIAKI',
  586. # 'secretkey' => 'secret123',
  587. # 'region' => 'us-east-1',
  588. # 'bucket' => 'gitlab-registry-bucket-AKIAKIAKI'
  589. # }
  590. # }
  591. ### Registry notifications endpoints
  592. # registry['notifications'] = [
  593. # {
  594. # 'name' => 'test_endpoint',
  595. # 'url' => 'https://gitlab.example.com/notify2',
  596. # 'timeout' => '500ms',
  597. # 'threshold' => 5,
  598. # 'backoff' => '1s',
  599. # 'headers' => {
  600. # "Authorization" => ["AUTHORIZATION_EXAMPLE_TOKEN"]
  601. # }
  602. # }
  603. # ]
  604. ### Default registry notifications
  605. # registry['default_notifications_timeout'] = "500ms"
  606. # registry['default_notifications_threshold'] = 5
  607. # registry['default_notifications_backoff'] = "1s"
  608. # registry['default_notifications_headers'] = {}
  609. ################################################################################
  610. ## Error Reporting and Logging with Sentry
  611. ################################################################################
  612. # gitlab_rails['sentry_enabled'] = false
  613. # gitlab_rails['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  614. # gitlab_rails['sentry_clientside_dsn'] = 'https://<key>@sentry.io/<project>'
  615. # gitlab_rails['sentry_environment'] = 'production'
  616. ################################################################################
  617. ## GitLab Workhorse
  618. ##! Docs: https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/README.md
  619. ################################################################################
  620. # gitlab_workhorse['enable'] = true
  621. # gitlab_workhorse['ha'] = false
  622. # gitlab_workhorse['listen_network'] = "unix"
  623. # gitlab_workhorse['listen_umask'] = 000
  624. # gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/socket"
  625. # gitlab_workhorse['auth_backend'] = "http://localhost:8080"
  626. ##! the empty string is the default in gitlab-workhorse option parser
  627. # gitlab_workhorse['auth_socket'] = "''"
  628. ##! put an empty string on the command line
  629. # gitlab_workhorse['pprof_listen_addr'] = "''"
  630. # gitlab_workhorse['prometheus_listen_addr'] = "localhost:9229"
  631. # gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
  632. # gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
  633. # gitlab_workhorse['proxy_headers_timeout'] = "1m0s"
  634. ##! limit number of concurrent API requests, defaults to 0 which is unlimited
  635. # gitlab_workhorse['api_limit'] = 0
  636. ##! limit number of API requests allowed to be queued, defaults to 0 which
  637. ##! disables queuing
  638. # gitlab_workhorse['api_queue_limit'] = 0
  639. ##! duration after which we timeout requests if they sit too long in the queue
  640. # gitlab_workhorse['api_queue_duration'] = "30s"
  641. ##! Long polling duration for job requesting for runners
  642. # gitlab_workhorse['api_ci_long_polling_duration'] = "60s"
  643. ##! Log format: default is text, can also be json or none.
  644. # gitlab_workhorse['log_format'] = "json"
  645. # gitlab_workhorse['env_directory'] = "/opt/gitlab/etc/gitlab-workhorse/env"
  646. # gitlab_workhorse['env'] = {
  647. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
  648. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  649. # }
  650. ################################################################################
  651. ## GitLab User Settings
  652. ##! Modify default git user.
  653. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#changing-the-name-of-the-git-user-group
  654. ################################################################################
  655. # user['username'] = "git"
  656. # user['group'] = "git"
  657. # user['uid'] = nil
  658. # user['gid'] = nil
  659. ##! The shell for the git user
  660. # user['shell'] = "/bin/sh"
  661. ##! The home directory for the git user
  662. # user['home'] = "/var/opt/gitlab"
  663. # user['git_user_name'] = "GitLab"
  664. # user['git_user_email'] = "gitlab@#{node['fqdn']}"
  665. ################################################################################
  666. ## GitLab Unicorn
  667. ##! Tweak unicorn settings.
  668. ##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
  669. ################################################################################
  670. # unicorn['enable'] = true
  671. # unicorn['worker_timeout'] = 60
  672. ###! Minimum worker_processes is 2 at this moment
  673. ###! See https://gitlab.com/gitlab-org/gitlab-foss/issues/18771
  674. # unicorn['worker_processes'] = 2
  675. ### Advanced settings
  676. # unicorn['listen'] = 'localhost'
  677. # unicorn['port'] = 8080
  678. # unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  679. # unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
  680. # unicorn['tcp_nopush'] = true
  681. # unicorn['backlog_socket'] = 1024
  682. ###! **Make sure somaxconn is equal or higher then backlog_socket**
  683. # unicorn['somaxconn'] = 1024
  684. ###! **We do not recommend changing this setting**
  685. # unicorn['log_directory'] = "/var/log/gitlab/unicorn"
  686. ### **Only change these settings if you understand well what they mean**
  687. ###! Docs: https://docs.gitlab.com/ee/administration/operations/unicorn.html#unicorn-worker-killer
  688. ###! https://github.com/kzk/unicorn-worker-killer
  689. # unicorn['worker_memory_limit_min'] = "1024 * 1 << 20"
  690. # unicorn['worker_memory_limit_max'] = "1280 * 1 << 20"
  691. # unicorn['exporter_enabled'] = false
  692. # unicorn['exporter_address'] = "127.0.0.1"
  693. # unicorn['exporter_port'] = 8083
  694. ################################################################################
  695. ## GitLab Puma
  696. ##! Tweak puma settings. You should only use Unicorn or Puma, not both.
  697. ##! Docs: https://docs.gitlab.com/omnibus/settings/puma.html
  698. ################################################################################
  699. # puma['enable'] = false
  700. # puma['ha'] = false
  701. # puma['worker_timeout'] = 60
  702. # puma['worker_processes'] = 2
  703. # puma['min_threads'] = 1
  704. # puma['max_threads'] = 16
  705. ### Advanced settings
  706. # puma['listen'] = '127.0.0.1'
  707. # puma['port'] = 8080
  708. # puma['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  709. # puma['pidfile'] = '/opt/gitlab/var/puma/puma.pid'
  710. # puma['state_path'] = '/opt/gitlab/var/puma/puma.state'
  711. ###! **We do not recommend changing this setting**
  712. # puma['log_directory'] = "/var/log/gitlab/puma"
  713. ### **Only change these settings if you understand well what they mean**
  714. ###! Docs: https://github.com/schneems/puma_worker_killer
  715. # puma['per_worker_max_memory_mb'] = 850
  716. # puma['exporter_enabled'] = false
  717. # puma['exporter_address'] = "127.0.0.1"
  718. # puma['exporter_port'] = 8083
  719. ################################################################################
  720. ## GitLab Sidekiq
  721. ################################################################################
  722. # sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
  723. # sidekiq['log_format'] = "json"
  724. # sidekiq['shutdown_timeout'] = 4
  725. # sidekiq['concurrency'] = 25
  726. # sidekiq['metrics_enabled'] = true
  727. # sidekiq['listen_address'] = "localhost"
  728. # sidekiq['listen_port'] = 8082
  729. ################################################################################
  730. ## gitlab-shell
  731. ################################################################################
  732. # gitlab_shell['audit_usernames'] = false
  733. # gitlab_shell['log_level'] = 'INFO'
  734. # gitlab_shell['log_format'] = 'json'
  735. # gitlab_shell['http_settings'] = { user: 'username', password: 'password', ca_file: '/etc/ssl/cert.pem', ca_path: '/etc/pki/tls/certs', self_signed_cert: false}
  736. # gitlab_shell['log_directory'] = "/var/log/gitlab/gitlab-shell/"
  737. # gitlab_shell['custom_hooks_dir'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks"
  738. # gitlab_shell['auth_file'] = "/var/opt/gitlab/.ssh/authorized_keys"
  739. ### Migration to Go feature flags
  740. ###! Docs: https://gitlab.com/gitlab-org/gitlab-shell#migration-to-go-feature-flags
  741. # gitlab_shell['migration'] = { enabled: true, features: [] }
  742. ### Git trace log file.
  743. ###! If set, git commands receive GIT_TRACE* environment variables
  744. ###! Docs: https://git-scm.com/book/es/v2/Git-Internals-Environment-Variables#Debugging
  745. ###! An absolute path starting with / – the trace output will be appended to
  746. ###! that file. It needs to exist so we can check permissions and avoid
  747. ###! throwing warnings to the users.
  748. # gitlab_shell['git_trace_log_file'] = "/var/log/gitlab/gitlab-shell/gitlab-shell-git-trace.log"
  749. ##! **We do not recommend changing this directory.**
  750. # gitlab_shell['dir'] = "/var/opt/gitlab/gitlab-shell"
  751. ################################################################
  752. ## GitLab PostgreSQL
  753. ################################################################
  754. ###! Changing any of these settings requires a restart of postgresql.
  755. ###! By default, reconfigure reloads postgresql if it is running. If you
  756. ###! change any of these settings, be sure to run `gitlab-ctl restart postgresql`
  757. ###! after reconfigure in order for the changes to take effect.
  758. # postgresql['enable'] = true
  759. # postgresql['listen_address'] = nil
  760. # postgresql['port'] = 5432
  761. # postgresql['data_dir'] = "/var/opt/gitlab/postgresql/data"
  762. ##! **recommend value is 1/4 of total RAM, up to 14GB.**
  763. # postgresql['shared_buffers'] = "256MB"
  764. ### Advanced settings
  765. # postgresql['ha'] = false
  766. # postgresql['dir'] = "/var/opt/gitlab/postgresql"
  767. # postgresql['log_directory'] = "/var/log/gitlab/postgresql"
  768. # postgresql['log_destination'] = nil
  769. # postgresql['logging_collector'] = nil
  770. # postgresql['log_truncate_on_rotation'] = nil
  771. # postgresql['log_rotation_age'] = nil
  772. # postgresql['log_rotation_size'] = nil
  773. # postgresql['username'] = "gitlab-psql"
  774. # postgresql['group'] = "gitlab-psql"
  775. ##! `SQL_USER_PASSWORD_HASH` can be generated using the command `gitlab-ctl pg-password-md5 gitlab`
  776. # postgresql['sql_user_password'] = 'SQL_USER_PASSWORD_HASH'
  777. # postgresql['uid'] = nil
  778. # postgresql['gid'] = nil
  779. # postgresql['shell'] = "/bin/sh"
  780. # postgresql['home'] = "/var/opt/gitlab/postgresql"
  781. # postgresql['user_path'] = "/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH"
  782. # postgresql['sql_user'] = "gitlab"
  783. # postgresql['max_connections'] = 200
  784. # postgresql['md5_auth_cidr_addresses'] = []
  785. # postgresql['trust_auth_cidr_addresses'] = []
  786. # postgresql['wal_buffers'] = "-1"
  787. # postgresql['autovacuum_max_workers'] = "3"
  788. # postgresql['autovacuum_freeze_max_age'] = "200000000"
  789. # postgresql['log_statement'] = nil
  790. # postgresql['track_activity_query_size'] = "1024"
  791. # postgresql['shared_preload_libraries'] = nil
  792. # postgresql['dynamic_shared_memory_type'] = nil
  793. # postgresql['hot_standby'] = "off"
  794. ### SSL settings
  795. # See https://www.postgresql.org/docs/9.6/static/runtime-config-connection.html#GUC-SSL-CERT-FILE for more details
  796. # postgresql['ssl'] = 'on'
  797. # postgresql['ssl_ciphers'] = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1'
  798. # postgresql['ssl_cert_file'] = 'server.crt'
  799. # postgresql['ssl_key_file'] = 'server.key'
  800. # postgresql['ssl_ca_file'] = '/opt/gitlab/embedded/ssl/certs/cacert.pem'
  801. # postgresql['ssl_crl_file'] = nil
  802. ### Replication settings
  803. ###! Note, some replication settings do not require a full restart. They are documented below.
  804. # postgresql['wal_level'] = "hot_standby"
  805. # postgresql['max_wal_senders'] = 5
  806. # postgresql['max_replication_slots'] = 0
  807. # postgresql['max_locks_per_transaction'] = 128
  808. # Backup/Archive settings
  809. # postgresql['archive_mode'] = "off"
  810. ###! Changing any of these settings only requires a reload of postgresql. You do not need to
  811. ###! restart postgresql if you change any of these and run reconfigure.
  812. # postgresql['work_mem'] = "16MB"
  813. # postgresql['maintenance_work_mem'] = "16MB"
  814. # postgresql['checkpoint_segments'] = 10
  815. # postgresql['checkpoint_timeout'] = "5min"
  816. # postgresql['checkpoint_completion_target'] = 0.9
  817. # postgresql['effective_io_concurrency'] = 1
  818. # postgresql['checkpoint_warning'] = "30s"
  819. # postgresql['effective_cache_size'] = "1MB"
  820. # postgresql['shmmax'] = 17179869184 # or 4294967295
  821. # postgresql['shmall'] = 4194304 # or 1048575
  822. # postgresql['autovacuum'] = "on"
  823. # postgresql['log_autovacuum_min_duration'] = "-1"
  824. # postgresql['autovacuum_naptime'] = "1min"
  825. # postgresql['autovacuum_vacuum_threshold'] = "50"
  826. # postgresql['autovacuum_analyze_threshold'] = "50"
  827. # postgresql['autovacuum_vacuum_scale_factor'] = "0.02"
  828. # postgresql['autovacuum_analyze_scale_factor'] = "0.01"
  829. # postgresql['autovacuum_vacuum_cost_delay'] = "20ms"
  830. # postgresql['autovacuum_vacuum_cost_limit'] = "-1"
  831. # postgresql['statement_timeout'] = "60000"
  832. # postgresql['idle_in_transaction_session_timeout'] = "60000"
  833. # postgresql['log_line_prefix'] = "%a"
  834. # postgresql['max_worker_processes'] = 8
  835. # postgresql['max_parallel_workers_per_gather'] = 0
  836. # postgresql['log_lock_waits'] = 1
  837. # postgresql['deadlock_timeout'] = '5s'
  838. # postgresql['track_io_timing'] = 0
  839. # postgresql['default_statistics_target'] = 1000
  840. ### Available in PostgreSQL 9.6 and later
  841. # postgresql['min_wal_size'] = 80MB
  842. # postgresql['max_wal_size'] = 1GB
  843. # Backup/Archive settings
  844. # postgresql['archive_command'] = nil
  845. # postgresql['archive_timeout'] = "0"
  846. ### Replication settings
  847. # postgresql['sql_replication_user'] = "gitlab_replicator"
  848. # postgresql['sql_replication_password'] = "md5 hash of postgresql password" # You can generate with `gitlab-ctl pg-password-md5 <dbuser>`
  849. # postgresql['wal_keep_segments'] = 10
  850. # postgresql['max_standby_archive_delay'] = "30s"
  851. # postgresql['max_standby_streaming_delay'] = "30s"
  852. # postgresql['synchronous_commit'] = on
  853. # postgresql['synchronous_standby_names'] = ''
  854. # postgresql['hot_standby_feedback'] = 'off'
  855. # postgresql['random_page_cost'] = 2.0
  856. # postgresql['log_temp_files'] = -1
  857. # postgresql['log_checkpoints'] = 'off'
  858. # To add custom entries to pg_hba.conf use the following
  859. # postgresql['custom_pg_hba_entries'] = {
  860. # APPLICATION: [ # APPLICATION should identify what the settings are used for
  861. # {
  862. # type: example,
  863. # database: example,
  864. # user: example,
  865. # cidr: example,
  866. # method: example,
  867. # option: example
  868. # }
  869. # ]
  870. # }
  871. # See https://www.postgresql.org/docs/9.6/static/auth-pg-hba-conf.html for an explanation
  872. # of the values
  873. ### Version settings
  874. # Set this if you have disabled the bundled PostgreSQL but still want to use the backup rake tasks
  875. # postgresql['version'] = 10
  876. ################################################################################
  877. ## GitLab Redis
  878. ##! **Can be disabled if you are using your own Redis instance.**
  879. ##! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  880. ################################################################################
  881. # redis['enable'] = true
  882. # redis['ha'] = false
  883. # redis['hz'] = 10
  884. # redis['dir'] = "/var/opt/gitlab/redis"
  885. # redis['log_directory'] = "/var/log/gitlab/redis"
  886. # redis['username'] = "gitlab-redis"
  887. # redis['group'] = "gitlab-redis"
  888. # redis['maxclients'] = "10000"
  889. # redis['maxmemory'] = "0"
  890. # redis['maxmemory_policy'] = "noeviction"
  891. # redis['maxmemory_samples'] = "5"
  892. # redis['tcp_backlog'] = 511
  893. # redis['tcp_timeout'] = "60"
  894. # redis['tcp_keepalive'] = "300"
  895. # redis['uid'] = nil
  896. # redis['gid'] = nil
  897. ### Disable or obfuscate unnecessary redis command names
  898. ### Uncomment and edit this block to add or remove entries.
  899. ### See https://docs.gitlab.com/omnibus/settings/redis.html#renamed-commands
  900. ### for detailed usage
  901. ###
  902. # redis['rename_commands'] = {
  903. # 'KEYS': ''
  904. #}
  905. #
  906. ###! **To enable only Redis service in this machine, uncomment
  907. ###! one of the lines below (choose master or slave instance types).**
  908. ###! Docs: https://docs.gitlab.com/omnibus/settings/redis.html
  909. ###! https://docs.gitlab.com/ee/administration/high_availability/redis.html
  910. # redis_master_role['enable'] = true
  911. # redis_slave_role['enable'] = true
  912. ### Redis TCP support (will disable UNIX socket transport)
  913. # redis['bind'] = '0.0.0.0' # or specify an IP to bind to a single one
  914. # redis['port'] = 6379
  915. # redis['password'] = 'redis-password-goes-here'
  916. ### Redis Sentinel support
  917. ###! **You need a master slave Redis replication to be able to do failover**
  918. ###! **Please read the documentation before enabling it to understand the
  919. ###! caveats:**
  920. ###! Docs: https://docs.gitlab.com/ee/administration/high_availability/redis.html
  921. ### Replication support
  922. #### Slave Redis instance
  923. # redis['master'] = false # by default this is true
  924. #### Slave and Sentinel shared configuration
  925. ####! **Both need to point to the master Redis instance to get replication and
  926. ####! heartbeat monitoring**
  927. # redis['master_name'] = 'gitlab-redis'
  928. # redis['master_ip'] = nil
  929. # redis['master_port'] = 6379
  930. #### Support to run redis slaves in a Docker or NAT environment
  931. ####! Docs: https://redis.io/topics/replication#configuring-replication-in-docker-and-nat
  932. # redis['announce_ip'] = nil
  933. # redis['announce_port'] = nil
  934. ####! **Master password should have the same value defined in
  935. ####! redis['password'] to enable the instance to transition to/from
  936. ####! master/slave in a failover event.**
  937. # redis['master_password'] = 'redis-password-goes-here'
  938. ####! Increase these values when your slaves can't catch up with master
  939. # redis['client_output_buffer_limit_normal'] = '0 0 0'
  940. # redis['client_output_buffer_limit_slave'] = '256mb 64mb 60'
  941. # redis['client_output_buffer_limit_pubsub'] = '32mb 8mb 60'
  942. #####! Redis snapshotting frequency
  943. #####! Set to [] to disable
  944. #####! Set to [''] to clear previously set values
  945. # redis['save'] = [ '900 1', '300 10', '60 10000' ]
  946. ################################################################################
  947. ## GitLab Web server
  948. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#using-a-non-bundled-web-server
  949. ################################################################################
  950. ##! When bundled nginx is disabled we need to add the external webserver user to
  951. ##! the GitLab webserver group.
  952. # web_server['external_users'] = []
  953. # web_server['username'] = 'gitlab-www'
  954. # web_server['group'] = 'gitlab-www'
  955. # web_server['uid'] = nil
  956. # web_server['gid'] = nil
  957. # web_server['shell'] = '/bin/false'
  958. # web_server['home'] = '/var/opt/gitlab/nginx'
  959. ################################################################################
  960. ## GitLab NGINX
  961. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
  962. ################################################################################
  963. # nginx['enable'] = true
  964. # nginx['client_max_body_size'] = '250m'
  965. # nginx['redirect_http_to_https'] = false
  966. # nginx['redirect_http_to_https_port'] = 80
  967. ##! Most root CA's are included by default
  968. # nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt"
  969. ##! Mozilla Recommendations - Modern
  970. nginx['ssl_session_timeout'] = "1d"
  971. nginx['ssl_session_cache'] = "builtin:1000 shared:MozSSL:10m"
  972. nginx['ssl_protocols'] = "TLSv1.3"
  973. nginx['ssl_prefer_server_ciphers'] = "off"
  974. nginx['hsts_max_age'] = 63072000
  975. nginx['ssl_stapling'] = "on"
  976. nginx['ssl_stapling_verify'] = "on"
  977. nginx['ssl_trusted_certificate'] = "/etc/gitlab/ssl/chain.crt"
  978. ##! enable/disable 2-way SSL client authentication
  979. # nginx['ssl_verify_client'] = "off"
  980. ##! if ssl_verify_client on, verification depth in the client certificates chain
  981. # nginx['ssl_verify_depth'] = "1"
  982. # nginx['ssl_certificate'] = "/etc/gitlab/ssl/#{node['fqdn']}.crt"
  983. # nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/#{node['fqdn']}.key"
  984. # nginx['ssl_ciphers'] = nil
  985. # nginx['ssl_prefer_server_ciphers'] = "off"
  986. ##! **Recommended by: https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
  987. ##! https://cipherli.st/**
  988. # nginx['ssl_protocols'] = "TLSv1.2 TLSv1.3"
  989. ##! **Recommended in: https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
  990. # nginx['ssl_session_cache'] = "builtin:1000 shared:SSL:5m"
  991. ##! **Default according to https://nginx.org/en/docs/http/ngx_http_ssl_module.html**
  992. # nginx['ssl_session_timeout'] = "1d"
  993. # nginx['ssl_dhparam'] = nil # Path to dhparams.pem, eg. /etc/gitlab/ssl/dhparams.pem
  994. # nginx['listen_addresses'] = ['*', '[::]']
  995. ##! **Defaults to forcing web browsers to always communicate using only HTTPS**
  996. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-http-strict-transport-security
  997. # nginx['hsts_max_age'] = 63072000
  998. # nginx['hsts_include_subdomains'] = false
  999. ##! Defaults to stripping path information when making cross-origin requests
  1000. # nginx['referrer_policy'] = 'strict-origin-when-cross-origin'
  1001. ##! **Docs: http://nginx.org/en/docs/http/ngx_http_gzip_module.html**
  1002. # nginx['gzip_enabled'] = true
  1003. ##! **Override only if you use a reverse proxy**
  1004. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port
  1005. # nginx['listen_port'] = nil
  1006. ##! **Override only if your reverse proxy internally communicates over HTTP**
  1007. ##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl
  1008. # nginx['listen_https'] = nil
  1009. {% if gitlab_nginx_proxy_protocol %}
  1010. nginx['custom_gitlab_server_config'] = "ssl_session_tickets off;\n"\
  1011. "ssl_stapling on;\n"\
  1012. "ssl_stapling_verify on;\n"\
  1013. "ssl_trusted_certificate /etc/gitlab/ssl/chain.crt;\n"\
  1014. "listen 10443 ssl http2 proxy_protocol;\n"\
  1015. "listen [::]:10443 ssl http2 proxy_protocol;\n"
  1016. {% else %}
  1017. nginx['custom_gitlab_server_config'] = "ssl_session_tickets off;\n"\
  1018. "ssl_stapling on;\n"\
  1019. "ssl_stapling_verify on;\n"\
  1020. "ssl_trusted_certificate /etc/gitlab/ssl/chain.crt;\n"
  1021. {% endif %}
  1022. # nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  1023. # nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/example.conf;"
  1024. # nginx['proxy_read_timeout'] = 3600
  1025. # nginx['proxy_connect_timeout'] = 300
  1026. # nginx['proxy_set_headers'] = {
  1027. # "Host" => "$http_host_with_default",
  1028. # "X-Real-IP" => "$remote_addr",
  1029. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1030. # "X-Forwarded-Proto" => "https",
  1031. # "X-Forwarded-Ssl" => "on",
  1032. # "Upgrade" => "$http_upgrade",
  1033. # "Connection" => "$connection_upgrade"
  1034. # }
  1035. # nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
  1036. # nginx['proxy_cache'] = 'gitlab'
  1037. # nginx['http2_enabled'] = true
  1038. {% if gitlab_nginx_proxy_protocol %}
  1039. nginx['real_ip_trusted_addresses'] = [ '{{ hostvars | ip_from_inventory('vm_gateway') }}' ]
  1040. nginx['real_ip_header'] = "proxy_protocol"
  1041. {% endif %}
  1042. # nginx['real_ip_recursive'] = nil
  1043. # nginx['custom_error_pages'] = {
  1044. # '404' => {
  1045. # 'title' => 'Example title',
  1046. # 'header' => 'Example header',
  1047. # 'message' => 'Example message'
  1048. # }
  1049. # }
  1050. ### Advanced settings
  1051. # nginx['dir'] = "/var/opt/gitlab/nginx"
  1052. # nginx['log_directory'] = "/var/log/gitlab/nginx"
  1053. # nginx['worker_processes'] = 4
  1054. # nginx['worker_connections'] = 10240
  1055. # nginx['log_format'] = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
  1056. # nginx['sendfile'] = 'on'
  1057. # nginx['tcp_nopush'] = 'on'
  1058. # nginx['tcp_nodelay'] = 'on'
  1059. # nginx['gzip'] = "on"
  1060. # nginx['gzip_http_version'] = "1.0"
  1061. # nginx['gzip_comp_level'] = "2"
  1062. # nginx['gzip_proxied'] = "any"
  1063. # nginx['gzip_types'] = [ "text/plain", "text/css", "application/x-javascript", "text/xml", "application/xml", "application/xml+rss", "text/javascript", "application/json" ]
  1064. # nginx['keepalive_timeout'] = 65
  1065. # nginx['cache_max_size'] = '5000m'
  1066. # nginx['server_names_hash_bucket_size'] = 64
  1067. ##! These paths have proxy_request_buffering disabled
  1068. # nginx['request_buffering_off_path_regex'] = "\.git/git-receive-pack$|\.git/info/refs?service=git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$"
  1069. ### Nginx status
  1070. # nginx['status'] = {
  1071. # "enable" => true,
  1072. # "listen_addresses" => ["127.0.0.1"],
  1073. # "fqdn" => "dev.example.com",
  1074. # "port" => 9999,
  1075. # "vts_enable" => true,
  1076. # "options" => {
  1077. # "stub_status" => "on", # Turn on stats
  1078. # "server_tokens" => "off", # Don't show the version of NGINX
  1079. # "access_log" => "off", # Disable logs for stats
  1080. # "allow" => "127.0.0.1", # Only allow access from localhost
  1081. # "deny" => "all" # Deny access to anyone else
  1082. # }
  1083. # }
  1084. ################################################################################
  1085. ## GitLab Logging
  1086. ##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html
  1087. ################################################################################
  1088. # logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
  1089. # logging['svlogd_num'] = 30 # keep 30 rotated log files
  1090. # logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
  1091. # logging['svlogd_filter'] = "gzip" # compress logs with gzip
  1092. # logging['svlogd_udp'] = nil # transmit log messages via UDP
  1093. # logging['svlogd_prefix'] = nil # custom prefix for log messages
  1094. # logging['logrotate_frequency'] = "daily" # rotate logs daily
  1095. # logging['logrotate_maxsize'] = nil # rotate logs when they grow bigger than size bytes even before the specified time interval (daily, weekly, monthly, or yearly)
  1096. # logging['logrotate_size'] = nil # do not rotate by size by default
  1097. # logging['logrotate_rotate'] = 30 # keep 30 rotated logs
  1098. # logging['logrotate_compress'] = "compress" # see 'man logrotate'
  1099. # logging['logrotate_method'] = "copytruncate" # see 'man logrotate'
  1100. # logging['logrotate_postrotate'] = nil # no postrotate command by default
  1101. # logging['logrotate_dateformat'] = nil # use date extensions for rotated files rather than numbers e.g. a value of "-%Y-%m-%d" would give rotated files like production.log-2016-03-09.gz
  1102. ### UDP log forwarding
  1103. ##! Docs: http://docs.gitlab.com/omnibus/settings/logs.html#udp-log-forwarding
  1104. ##! remote host to ship log messages to via UDP
  1105. # logging['udp_log_shipping_host'] = nil
  1106. ##! override the hostname used when logs are shipped via UDP,
  1107. ## by default the system hostname will be used.
  1108. # logging['udp_log_shipping_hostname'] = nil
  1109. ##! remote port to ship log messages to via UDP
  1110. # logging['udp_log_shipping_port'] = 514
  1111. ################################################################################
  1112. ## Logrotate
  1113. ##! Docs: https://docs.gitlab.com/omnibus/settings/logs.html#logrotate
  1114. ##! You can disable built in logrotate feature.
  1115. ################################################################################
  1116. # logrotate['enable'] = true
  1117. # logrotate['log_directory'] = "/var/log/gitlab/logrotate"
  1118. ################################################################################
  1119. ## Users and groups accounts
  1120. ##! Disable management of users and groups accounts.
  1121. ##! **Set only if creating accounts manually**
  1122. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
  1123. ################################################################################
  1124. # manage_accounts['enable'] = false
  1125. ################################################################################
  1126. ## Storage directories
  1127. ##! Disable managing storage directories
  1128. ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management
  1129. ################################################################################
  1130. ##! **Set only if the select directories are created manually**
  1131. # manage_storage_directories['enable'] = false
  1132. # manage_storage_directories['manage_etc'] = false
  1133. ################################################################################
  1134. ## Runtime directory
  1135. ##! Docs: https://docs.gitlab.com//omnibus/settings/configuration.html#configuring-runtime-directory
  1136. ################################################################################
  1137. # runtime_dir '/run'
  1138. ################################################################################
  1139. ## Git
  1140. ##! Advanced setting for configuring git system settings for omnibus-gitlab
  1141. ##! internal git
  1142. ################################################################################
  1143. ##! For multiple options under one header use array of comma separated values,
  1144. ##! eg.:
  1145. ##! { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co = checkout"] }
  1146. # omnibus_gitconfig['system'] = {
  1147. # "pack" => ["threads = 1"],
  1148. # "receive" => ["fsckObjects = true", "advertisePushOptions = true"],
  1149. # "repack" => ["writeBitmaps = true"],
  1150. # "transfer" => ["hideRefs=^refs/tmp/", "hideRefs=^refs/keep-around/", "hideRefs=^refs/remotes/"],
  1151. # }
  1152. ################################################################################
  1153. ## GitLab Pages
  1154. ##! Docs: https://docs.gitlab.com/ee/pages/administration.html
  1155. ################################################################################
  1156. ##! Define to enable GitLab Pages
  1157. # pages_external_url "http://pages.example.com/"
  1158. # gitlab_pages['enable'] = false
  1159. ##! Configure to expose GitLab Pages on external IP address, serving the HTTP
  1160. # gitlab_pages['external_http'] = []
  1161. ##! Configure to expose GitLab Pages on external IP address, serving the HTTPS
  1162. # gitlab_pages['external_https'] = []
  1163. ##! Configure to use the default list of cipher suites
  1164. # gitlab_pages['insecure_ciphers'] = false
  1165. ##! Configure to enable health check endpoint on GitLab Pages
  1166. # gitlab_pages['status_uri'] = "/@status"
  1167. ##! Tune the maximum number of concurrent connections GitLab Pages will handle.
  1168. ##! This should be in the range 1 - 10000, defaulting to 5000.
  1169. # gitlab_pages['max_connections'] = 5000
  1170. ##! Configure to use JSON structured logging in GitLab Pages
  1171. # gitlab_pages['log_format'] = "json"
  1172. ##! Configure verbose logging for GitLab Pages
  1173. # gitlab_pages['log_verbose'] = false
  1174. ##! Error Reporting and Logging with Sentry
  1175. # gitlab_pages['sentry_enabled'] = false
  1176. # gitlab_pages['sentry_dsn'] = 'https://<key>@sentry.io/<project>'
  1177. # gitlab_pages['sentry_environment'] = 'production'
  1178. ##! Listen for requests forwarded by reverse proxy
  1179. # gitlab_pages['listen_proxy'] = "localhost:8090"
  1180. ##! Configure GitLab Pages to use an HTTP Proxy
  1181. # gitlab_pages['http_proxy'] = "http://example:8080"
  1182. # gitlab_pages['redirect_http'] = true
  1183. # gitlab_pages['use_http2'] = true
  1184. # gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages"
  1185. # gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages"
  1186. # gitlab_pages['artifacts_server'] = true
  1187. # gitlab_pages['artifacts_server_url'] = nil # Defaults to external_url + '/api/v4'
  1188. # gitlab_pages['artifacts_server_timeout'] = 10
  1189. ##! Environments that do not support bind-mounting should set this parameter to
  1190. ##! true. This is incompatible with the artifacts server
  1191. # gitlab_pages['inplace_chroot'] = false
  1192. ##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics
  1193. # gitlab_pages['metrics_address'] = ":9235"
  1194. ##! Specifies the minimum SSL/TLS version ("ssl3", "tls1.0", "tls1.1" or "tls1.2")
  1195. # gitlab_pages['tls_min_version'] = "ssl3"
  1196. ##! Specifies the maximum SSL/TLS version ("ssl3", "tls1.0", "tls1.1" or "tls1.2")
  1197. # gitlab_pages['tls_max_version'] = "tls1.2"
  1198. ##! Pages access control
  1199. # gitlab_pages['access_control'] = false
  1200. # gitlab_pages['gitlab_id'] = nil # Automatically generated if not present
  1201. # gitlab_pages['gitlab_secret'] = nil # Generated if not present
  1202. # gitlab_pages['auth_redirect_uri'] = nil # Defaults to projects subdomain of pages_external_url and + '/auth'
  1203. # gitlab_pages['gitlab_server'] = nil # Defaults to external_url
  1204. # gitlab_pages['auth_secret'] = nil # Generated if not present
  1205. ##! GitLab API HTTP client connection timeout
  1206. # gitlab_pages['gitlab_client_http_timeout'] = "10s"
  1207. ##! GitLab API JWT Token expiry time"
  1208. # gitlab_pages['gitlab_client_jwt_expiry'] = "30s"
  1209. ##! Define custom gitlab-pages HTTP headers for the whole instance
  1210. # gitlab_pages['headers'] = []
  1211. ##! Shared secret used for authentication between Pages and GitLab
  1212. # gitlab_pages['api_secret_key'] = nil # Will be generated if not set. Base64 encoded and exactly 32 bytes long.
  1213. ################################################################################
  1214. ## GitLab Pages NGINX
  1215. ################################################################################
  1216. # All the settings defined in the "GitLab Nginx" section are also available in
  1217. # this "GitLab Pages NGINX" section, using the key `pages_nginx`. However,
  1218. # those settings should be explicitly set. That is, settings given as
  1219. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1220. # `pages_nginx['some_setting']` and should be set separately.
  1221. # Below you can find settings that are exclusive to "GitLab Pages NGINX"
  1222. # pages_nginx['enable'] = false
  1223. # gitlab_rails['pages_path'] = "/var/opt/gitlab/gitlab-rails/shared/pages"
  1224. ################################################################################
  1225. ## GitLab CI
  1226. ##! Docs: https://docs.gitlab.com/ee/ci/quick_start/README.html
  1227. ################################################################################
  1228. # gitlab_ci['gitlab_ci_all_broken_builds'] = true
  1229. # gitlab_ci['gitlab_ci_add_pusher'] = true
  1230. # gitlab_ci['builds_directory'] = '/var/opt/gitlab/gitlab-ci/builds'
  1231. ################################################################################
  1232. ## GitLab Mattermost
  1233. ##! Docs: https://docs.gitlab.com/omnibus/gitlab-mattermost
  1234. ################################################################################
  1235. {% if gitlab_enable_mattermost %}
  1236. mattermost_external_url 'https://{{ gitlab_nginx_mattermost_fqdn }}'
  1237. {% endif %}
  1238. # mattermost_external_url 'http://mattermost.example.com'
  1239. # mattermost['enable'] = false
  1240. # mattermost['username'] = 'mattermost'
  1241. # mattermost['group'] = 'mattermost'
  1242. # mattermost['uid'] = nil
  1243. # mattermost['gid'] = nil
  1244. # mattermost['home'] = '/var/opt/gitlab/mattermost'
  1245. # mattermost['database_name'] = 'mattermost_production'
  1246. # mattermost['env'] = {
  1247. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1248. # }
  1249. # mattermost['service_address'] = "127.0.0.1"
  1250. # mattermost['service_port'] = "8065"
  1251. # mattermost['service_site_url'] = nil
  1252. # mattermost['service_allowed_untrusted_internal_connections'] = ""
  1253. # mattermost['service_enable_api_team_deletion'] = true
  1254. # mattermost['team_site_name'] = "GitLab Mattermost"
  1255. # mattermost['sql_driver_name'] = 'mysql'
  1256. # mattermost['sql_data_source'] = "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8"
  1257. # mattermost['log_file_directory'] = '/var/log/gitlab/mattermost/'
  1258. # mattermost['gitlab_enable'] = false
  1259. # mattermost['gitlab_id'] = "12345656"
  1260. # mattermost['gitlab_secret'] = "123456789"
  1261. # mattermost['gitlab_scope'] = ""
  1262. # mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
  1263. # mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
  1264. # mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v4/user"
  1265. # mattermost['file_directory'] = "/var/opt/gitlab/mattermost/data"
  1266. # mattermost['plugin_directory'] = "/var/opt/gitlab/mattermost/plugins"
  1267. # mattermost['plugin_client_directory'] = "/var/opt/gitlab/mattermost/client-plugins"
  1268. ################################################################################
  1269. ## Mattermost NGINX
  1270. ################################################################################
  1271. # All the settings defined in the "GitLab Nginx" section are also available in
  1272. # this "Mattermost NGINX" section, using the key `mattermost_nginx`. However,
  1273. # those settings should be explicitly set. That is, settings given as
  1274. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1275. # `mattermost_nginx['some_setting']` and should be set separately.
  1276. # Below you can find settings that are exclusive to "Mattermost NGINX"
  1277. # mattermost_nginx['enable'] = false
  1278. {% if gitlab_nginx_proxy_protocol %}
  1279. mattermost_nginx['custom_gitlab_mattermost_server_config'] = "ssl_session_tickets off;\n"\
  1280. "ssl_stapling on;\n"\
  1281. "ssl_stapling_verify on;\n"\
  1282. "ssl_trusted_certificate /etc/gitlab/ssl/chain.crt;\n"\
  1283. "listen 10443 ssl http2 proxy_protocol;\n"\
  1284. "listen [::]:10443 ssl http2 proxy_protocol;\n"
  1285. mattermost_nginx['real_ip_trusted_addresses'] = [ '{{ hostvars | ip_from_inventory('vm_gateway') }}' ]
  1286. mattermost_nginx['real_ip_header'] = "proxy_protocol"
  1287. {% else %}
  1288. mattermost_nginx['custom_gitlab_mattermost_server_config'] = "ssl_session_tickets off;\n"\
  1289. "ssl_stapling on;\n"\
  1290. "ssl_stapling_verify on;\n"\
  1291. "ssl_trusted_certificate /etc/gitlab/ssl/chain.crt;\n"
  1292. {% endif %}
  1293. # mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
  1294. # mattermost_nginx['proxy_set_headers'] = {
  1295. # "Host" => "$http_host",
  1296. # "X-Real-IP" => "$remote_addr",
  1297. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1298. # "X-Frame-Options" => "SAMEORIGIN",
  1299. # "X-Forwarded-Proto" => "https",
  1300. # "X-Forwarded-Ssl" => "on",
  1301. # "Upgrade" => "$http_upgrade",
  1302. # "Connection" => "$connection_upgrade"
  1303. # }
  1304. ################################################################################
  1305. ## Registry NGINX
  1306. ################################################################################
  1307. # All the settings defined in the "GitLab Nginx" section are also available in
  1308. # this "Registry NGINX" section, using the key `registry_nginx`. However, those
  1309. # settings should be explicitly set. That is, settings given as
  1310. # `nginx['some_setting']` WILL NOT be automatically replicated as
  1311. # `registry_nginx['some_setting']` and should be set separately.
  1312. # Below you can find settings that are exclusive to "Registry NGINX"
  1313. # registry_nginx['enable'] = false
  1314. # registry_nginx['proxy_set_headers'] = {
  1315. # "Host" => "$http_host",
  1316. # "X-Real-IP" => "$remote_addr",
  1317. # "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
  1318. # "X-Forwarded-Proto" => "https",
  1319. # "X-Forwarded-Ssl" => "on"
  1320. # }
  1321. # When the registry is automatically enabled using the same domain as `external_url`,
  1322. # it listens on this port
  1323. # registry_nginx['listen_port'] = 5050
  1324. ################################################################################
  1325. ## Prometheus
  1326. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/
  1327. ################################################################################
  1328. ###! **To enable only Monitoring service in this machine, uncomment
  1329. ###! the line below.**
  1330. ###! Docs: https://docs.gitlab.com/ee/administration/high_availability
  1331. # monitoring_role['enable'] = true
  1332. # prometheus['enable'] = true
  1333. # prometheus['monitor_kubernetes'] = true
  1334. # prometheus['username'] = 'gitlab-prometheus'
  1335. # prometheus['group'] = 'gitlab-prometheus'
  1336. # prometheus['uid'] = nil
  1337. # prometheus['gid'] = nil
  1338. # prometheus['shell'] = '/bin/sh'
  1339. # prometheus['home'] = '/var/opt/gitlab/prometheus'
  1340. # prometheus['log_directory'] = '/var/log/gitlab/prometheus'
  1341. # prometheus['rules_files'] = ['/var/opt/gitlab/prometheus/rules/*.rules']
  1342. # prometheus['scrape_interval'] = 15
  1343. # prometheus['scrape_timeout'] = 15
  1344. # prometheus['env_directory'] = '/opt/gitlab/etc/prometheus/env'
  1345. # prometheus['env'] = {
  1346. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1347. # }
  1348. #
  1349. ### Custom scrape configs
  1350. #
  1351. # Prometheus can scrape additional jobs via scrape_configs. The default automatically
  1352. # includes all of the exporters supported by the omnibus config.
  1353. #
  1354. # See: https://prometheus.io/docs/operating/configuration/#<scrape_config>
  1355. #
  1356. # Example:
  1357. #
  1358. # prometheus['scrape_configs'] = [
  1359. # {
  1360. # 'job_name': 'example',
  1361. # 'static_configs' => [
  1362. # 'targets' => ['hostname:port'],
  1363. # ],
  1364. # },
  1365. # ]
  1366. #
  1367. ### Custom alertmanager config
  1368. #
  1369. # To configure external alertmanagers, create an alertmanager config.
  1370. #
  1371. # See: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config
  1372. #
  1373. # prometheus['alertmanagers'] = [
  1374. # {
  1375. # 'static_configs' => [
  1376. # {
  1377. # 'targets' => [
  1378. # 'hostname:port'
  1379. # ]
  1380. # }
  1381. # ]
  1382. # }
  1383. # ]
  1384. #
  1385. ### Custom Prometheus flags
  1386. #
  1387. # prometheus['flags'] = {
  1388. # 'storage.tsdb.path' => "/var/opt/gitlab/prometheus/data",
  1389. # 'storage.tsdb.retention.time' => "15d",
  1390. # 'config.file' => "/var/opt/gitlab/prometheus/prometheus.yml"
  1391. # }
  1392. ##! Advanced settings. Should be changed only if absolutely needed.
  1393. # prometheus['listen_address'] = 'localhost:9090'
  1394. ################################################################################
  1395. ## Prometheus Alertmanager
  1396. ################################################################################
  1397. # alertmanager['enable'] = true
  1398. # alertmanager['home'] = '/var/opt/gitlab/alertmanager'
  1399. # alertmanager['log_directory'] = '/var/log/gitlab/alertmanager'
  1400. # alertmanager['admin_email'] = 'admin@example.com'
  1401. # alertmanager['flags'] = {
  1402. # 'web.listen-address' => "localhost:9093"
  1403. # 'storage.path' => "/var/opt/gitlab/alertmanager/data"
  1404. # 'config.file' => "/var/opt/gitlab/alertmanager/alertmanager.yml"
  1405. # }
  1406. # alertmanager['env_directory'] = '/opt/gitlab/etc/alertmanager/env'
  1407. # alertmanager['env'] = {
  1408. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1409. # }
  1410. ##! Advanced settings. Should be changed only if absolutely needed.
  1411. # alertmanager['listen_address'] = 'localhost:9093'
  1412. # alertmanager['global'] = {}
  1413. ################################################################################
  1414. ## Prometheus Node Exporter
  1415. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/node_exporter.html
  1416. ################################################################################
  1417. # node_exporter['enable'] = true
  1418. # node_exporter['home'] = '/var/opt/gitlab/node-exporter'
  1419. # node_exporter['log_directory'] = '/var/log/gitlab/node-exporter'
  1420. # node_exporter['flags'] = {
  1421. # 'collector.textfile.directory' => "/var/opt/gitlab/node-exporter/textfile_collector"
  1422. # }
  1423. # node_exporter['env_directory'] = '/opt/gitlab/etc/node-exporter/env'
  1424. # node_exporter['env'] = {
  1425. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1426. # }
  1427. ##! Advanced settings. Should be changed only if absolutely needed.
  1428. # node_exporter['listen_address'] = 'localhost:9100'
  1429. ################################################################################
  1430. ## Prometheus Redis exporter
  1431. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/redis_exporter.html
  1432. ################################################################################
  1433. # redis_exporter['enable'] = true
  1434. # redis_exporter['log_directory'] = '/var/log/gitlab/redis-exporter'
  1435. # redis_exporter['flags'] = {
  1436. # 'redis.addr' => "unix:///var/opt/gitlab/redis/redis.socket",
  1437. # }
  1438. # redis_exporter['env_directory'] = '/opt/gitlab/etc/redis-exporter/env'
  1439. # redis_exporter['env'] = {
  1440. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1441. # }
  1442. ##! Advanced settings. Should be changed only if absolutely needed.
  1443. # redis_exporter['listen_address'] = 'localhost:9121'
  1444. ################################################################################
  1445. ## Prometheus Postgres exporter
  1446. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/postgres_exporter.html
  1447. ################################################################################
  1448. # postgres_exporter['enable'] = true
  1449. # postgres_exporter['home'] = '/var/opt/gitlab/postgres-exporter'
  1450. # postgres_exporter['log_directory'] = '/var/log/gitlab/postgres-exporter'
  1451. # postgres_exporter['flags'] = {}
  1452. # postgres_exporter['listen_address'] = 'localhost:9187'
  1453. # postgres_exporter['env_directory'] = '/opt/gitlab/etc/postgres-exporter/env'
  1454. # postgres_exporter['env'] = {
  1455. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1456. # }
  1457. # postgres_exporter['sslmode'] = nil
  1458. ################################################################################
  1459. ## Prometheus PgBouncer exporter (EE only)
  1460. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/pgbouncer_exporter.html
  1461. ################################################################################
  1462. # pgbouncer_exporter['enable'] = false
  1463. # pgbouncer_exporter['log_directory'] = "/var/log/gitlab/pgbouncer-exporter"
  1464. # pgbouncer_exporter['listen_address'] = 'localhost:9188'
  1465. # pgbouncer_exporter['env_directory'] = '/opt/gitlab/etc/pgbouncer-exporter/env'
  1466. # pgbouncer_exporter['env'] = {
  1467. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1468. # }
  1469. ################################################################################
  1470. ## Prometheus Gitlab exporter
  1471. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/gitlab_exporter.html
  1472. ################################################################################
  1473. # gitlab_exporter['enable'] = true
  1474. # gitlab_exporter['log_directory'] = "/var/log/gitlab/gitlab-exporter"
  1475. # gitlab_exporter['home'] = "/var/opt/gitlab/gitlab-exporter"
  1476. ##! Advanced settings. Should be changed only if absolutely needed.
  1477. # gitlab_exporter['listen_address'] = 'localhost'
  1478. # gitlab_exporter['listen_port'] = '9168'
  1479. ##! Manage gitlab-exporter sidekiq probes. false by default when Sentinels are
  1480. ##! found.
  1481. # gitlab_exporter['probe_sidekiq'] = true
  1482. # To completely disable prometheus, and all of it's exporters, set to false
  1483. # prometheus_monitoring['enable'] = true
  1484. ################################################################################
  1485. ## Grafana Dashboards
  1486. ##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/#prometheus-as-a-grafana-data-source
  1487. ################################################################################
  1488. # grafana['enable'] = true
  1489. # grafana['log_directory'] = '/var/log/gitlab/grafana'
  1490. # grafana['home'] = '/var/opt/gitlab/grafana'
  1491. # grafana['admin_password'] = 'admin'
  1492. # grafana['allow_user_sign_up'] = false
  1493. # grafana['basic_auth_enabled'] = false
  1494. # grafana['disable_login_form'] = true
  1495. # grafana['gitlab_application_id'] = 'GITLAB_APPLICATION_ID'
  1496. # grafana['gitlab_secret'] = 'GITLAB_SECRET'
  1497. # grafana['env_directory'] = '/opt/gitlab/etc/grafana/env'
  1498. # grafana['allowed_groups'] = []
  1499. # grafana['gitlab_auth_sign_up'] = true
  1500. # grafana['env'] = {
  1501. # 'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/"
  1502. # }
  1503. # grafana['metrics_enabled'] = false
  1504. # grafana['metrics_basic_auth_username'] = 'grafana_metrics' # default: nil
  1505. # grafana['metrics_basic_auth_password'] = 'please_set_a_unique_password' # default: nil
  1506. ### Dashboards
  1507. #
  1508. # See: http://docs.grafana.org/administration/provisioning/#dashboards
  1509. #
  1510. # NOTE: Setting this will override the default.
  1511. #
  1512. # grafana['dashboards'] = [
  1513. # {
  1514. # 'name' => 'GitLab Omnibus',
  1515. # 'orgId' => 1,
  1516. # 'folder' => 'GitLab Omnibus',
  1517. # 'type' => 'file',
  1518. # 'disableDeletion' => true,
  1519. # 'updateIntervalSeconds' => 600,
  1520. # 'options' => {
  1521. # 'path' => '/opt/gitlab/embedded/service/grafana-dashboards',
  1522. # }
  1523. # }
  1524. # ]
  1525. ### Datasources
  1526. #
  1527. # See: http://docs.grafana.org/administration/provisioning/#example-datasource-config-file
  1528. #
  1529. # NOTE: Setting this will override the default.
  1530. #
  1531. # grafana['datasources'] = [
  1532. # {
  1533. # 'name' => 'GitLab Omnibus',
  1534. # 'type' => 'prometheus',
  1535. # 'access' => 'proxy',
  1536. # 'url' => 'http://localhost:9090'
  1537. # }
  1538. # ]
  1539. ##! Advanced settings. Should be changed only if absolutely needed.
  1540. # grafana['http_addr'] = 'localhost'
  1541. # grafana['http_port'] = 3000
  1542. ################################################################################
  1543. ## Gitaly
  1544. ##! Docs:
  1545. ################################################################################
  1546. # The gitaly['enable'] option exists for the purpose of cluster
  1547. # deployments, see https://docs.gitlab.com/ee/administration/gitaly/index.html .
  1548. # gitaly['enable'] = true
  1549. # gitaly['dir'] = "/var/opt/gitlab/gitaly"
  1550. # gitaly['log_directory'] = "/var/log/gitlab/gitaly"
  1551. # gitaly['bin_path'] = "/opt/gitlab/embedded/bin/gitaly"
  1552. # gitaly['env_directory'] = "/opt/gitlab/etc/gitaly/env"
  1553. # gitaly['env'] = {
  1554. # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin",
  1555. # 'HOME' => '/var/opt/gitlab'
  1556. # }
  1557. ##! internal_socket_dir is the directory that will contain internal gitaly sockets,
  1558. ##! separate from socket_path which is the socket that external clients listen on
  1559. # gitaly['internal_socket_dir'] = "/var/opt/gitlab/gitaly"
  1560. # gitaly['socket_path'] = "/var/opt/gitlab/gitaly/gitaly.socket"
  1561. # gitaly['listen_addr'] = "localhost:8075"
  1562. # gitaly['tls_listen_addr'] = "localhost:9075"
  1563. # gitaly['certificate_path'] = "/var/opt/gitlab/gitaly/certificate.pem"
  1564. # gitaly['key_path'] = "/var/opt/gitlab/gitaly/key.pem"
  1565. # gitaly['prometheus_listen_addr'] = "localhost:9236"
  1566. # gitaly['logging_level'] = "warn"
  1567. # gitaly['logging_format'] = "json"
  1568. # gitaly['logging_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  1569. # gitaly['logging_ruby_sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  1570. # gitaly['logging_sentry_environment'] = "production"
  1571. # gitaly['prometheus_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]"
  1572. # gitaly['auth_token'] = '<secret>'
  1573. # gitaly['auth_transitioning'] = false # When true, auth is logged to Prometheus but NOT enforced
  1574. # gitaly['graceful_restart_timeout'] = '1m' # Grace time for a gitaly process to finish ongoing requests
  1575. # gitaly['git_catfile_cache_size'] = 100 # Number of 'git cat-file' processes kept around for re-use
  1576. # gitaly['open_files_ulimit'] = 15000 # Maximum number of open files allowed for the gitaly process
  1577. # gitaly['ruby_max_rss'] = 300000000 # RSS threshold in bytes for triggering a gitaly-ruby restart
  1578. # gitaly['ruby_graceful_restart_timeout'] = '10m' # Grace time for a gitaly-ruby process to finish ongoing requests
  1579. # gitaly['ruby_restart_delay'] = '5m' # Period of sustained high RSS that needs to be observed before restarting gitaly-ruby
  1580. # gitaly['ruby_rugged_git_config_search_path'] = "/opt/gitlab/embedded/etc" # Location of system-wide gitconfig file
  1581. # gitaly['ruby_num_workers'] = 3 # Number of gitaly-ruby worker processes. Minimum 2, default 2.
  1582. # gitaly['concurrency'] = [
  1583. # {
  1584. # 'rpc' => "/gitaly.SmartHTTPService/PostReceivePack",
  1585. # 'max_per_repo' => 20
  1586. # }, {
  1587. # 'rpc' => "/gitaly.SSHService/SSHUploadPack",
  1588. # 'max_per_repo' => 5
  1589. # }
  1590. # ]
  1591. ################################################################################
  1592. ## Praefect
  1593. ##! Docs: https://gitlab.com/gitlab-org/gitaly/blob/master/doc/design_ha.md
  1594. ################################################################################
  1595. # praefect['enable'] = false
  1596. # praefect['virtual_storage_name'] = "praefect"
  1597. # praefect['failover_enabled'] = false
  1598. # praefect['auth_token'] = ""
  1599. # praefect['auth_transitioning'] = false
  1600. # praefect['listen_addr'] = "localhost:2305"
  1601. # praefect['prometheus_listen_addr'] = "localhost:9652"
  1602. # praefect['prometheus_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]"
  1603. # praefect['logging_level'] = "warn"
  1604. # praefect['logging_format'] = "json"
  1605. # praefect['virtual_storages'] = {
  1606. # 'default' => {
  1607. # 'praefect-internal-0' => {
  1608. # 'address' => 'tcp://10.23.56.78:8075',
  1609. # 'token' => 'abc123'
  1610. # },
  1611. # 'praefect-internal-1' => {
  1612. # 'address' => 'tcp://10.76.23.31:8075',
  1613. # 'token' => 'xyz456'
  1614. # }
  1615. # },
  1616. # 'alternative' => {
  1617. # 'praefect-internal-2' => {
  1618. # 'address' => 'tcp://10.34.1.16:8075',
  1619. # 'token' => 'abc321'
  1620. # },
  1621. # 'praefect-internal-3' => {
  1622. # 'address' => 'tcp://10.23.18.6:8075',
  1623. # 'token' => 'xyz890'
  1624. # }
  1625. # }
  1626. # }
  1627. # praefect['sentry_dsn'] = "https://<key>:<secret>@sentry.io/<project>"
  1628. # praefect['sentry_environment'] = "production"
  1629. # praefect['database_host'] = 'postgres.internal'
  1630. # praefect['database_port'] = 5432
  1631. # praefect['database_user'] = 'praefect'
  1632. # praefect['database_password'] = 'secret'
  1633. # praefect['database_dbname'] = 'praefect_production'
  1634. # praefect['database_sslmode'] = 'disable'
  1635. # praefect['database_sslcert'] = '/path/to/client-cert'
  1636. # praefect['database_sslkey'] = '/path/to/client-key'
  1637. # praefect['database_sslrootcert'] = '/path/to/rootcert'
  1638. ################################################################################
  1639. # Storage check
  1640. ################################################################################
  1641. # storage_check['enable'] = false
  1642. # storage_check['target'] = 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
  1643. # storage_check['log_directory'] = '/var/log/gitlab/storage-check'
  1644. ################################################################################
  1645. # Let's Encrypt integration
  1646. ################################################################################
  1647. {% if gitlab_enable_https %}
  1648. letsencrypt['enable'] = true
  1649. letsencrypt['contact_emails'] = [ '{{ letsencrypt_email }}' ] # This should be an array of email addresses to add as contacts
  1650. letsencrypt['group'] = 'root'
  1651. letsencrypt['key_size'] = 4096
  1652. letsencrypt['owner'] = 'root'
  1653. letsencrypt['wwwroot'] = '/var/opt/gitlab/nginx/www'
  1654. # See http://docs.gitlab.com/omnibus/settings/ssl.html#automatic-renewal for more on these sesttings
  1655. letsencrypt['auto_renew'] = true
  1656. letsencrypt['auto_renew_hour'] = 0
  1657. letsencrypt['auto_renew_minute'] = 54 # Should be a number or cron expression, if specified.
  1658. letsencrypt['auto_renew_day_of_month'] = "*/4"
  1659. {% endif %}
  1660. # letsencrypt['enable'] = nil
  1661. # letsencrypt['contact_emails'] = [] # This should be an array of email addresses to add as contacts
  1662. # letsencrypt['group'] = 'root'
  1663. # letsencrypt['key_size'] = 2048
  1664. # letsencrypt['owner'] = 'root'
  1665. # letsencrypt['wwwroot'] = '/var/opt/gitlab/nginx/www'
  1666. # See http://docs.gitlab.com/omnibus/settings/ssl.html#automatic-renewal for more on these sesttings
  1667. # letsencrypt['auto_renew'] = true
  1668. # letsencrypt['auto_renew_hour'] = 0
  1669. # letsencrypt['auto_renew_minute'] = nil # Should be a number or cron expression, if specified.
  1670. # letsencrypt['auto_renew_day_of_month'] = "*/4"
  1671. ##! Turn off automatic init system detection. To skip init detection in
  1672. ##! non-docker containers. Recommended not to change.
  1673. # package['detect_init'] = true
  1674. ##! Specify maximum number of tasks that can be created by the systemd unit
  1675. ##! Will be populated as TasksMax value to the unit file if user is on a systemd
  1676. ##! version that supports it (>= 227). Will be a no-op if user is not on systemd.
  1677. # package['systemd_tasks_max'] = 4915
  1678. ##! Settings to configure order of GitLab's systemd unit.
  1679. ##! Note: We do not recommend changing these values unless absolutely necessary
  1680. # package['systemd_after'] = 'multi-user.target'
  1681. # package['systemd_wanted_by'] = 'multi-user.target'
  1682. ################################################################################
  1683. ################################################################################
  1684. ## Configuration Settings for GitLab EE only ##
  1685. ################################################################################
  1686. ################################################################################
  1687. ################################################################################
  1688. ## Auxiliary cron jobs applicable to GitLab EE only
  1689. ################################################################################
  1690. #
  1691. # gitlab_rails['geo_file_download_dispatch_worker_cron'] = "*/10 * * * *"
  1692. # gitlab_rails['geo_repository_sync_worker_cron'] = "*/5 * * * *"
  1693. # gitlab_rails['geo_secondary_registry_consistency_worker'] = "* * * * *"
  1694. # gitlab_rails['geo_prune_event_log_worker_cron'] = "*/5 * * * *"
  1695. # gitlab_rails['geo_repository_verification_primary_batch_worker_cron'] = "*/5 * * * *"
  1696. # gitlab_rails['geo_repository_verification_secondary_scheduler_worker_cron'] = "*/5 * * * *"
  1697. # gitlab_rails['geo_migrated_local_files_clean_up_worker_cron'] = "15 */6 * * *"
  1698. # gitlab_rails['ldap_sync_worker_cron'] = "30 1 * * *"
  1699. # gitlab_rails['ldap_group_sync_worker_cron'] = "0 * * * *"
  1700. # gitlab_rails['historical_data_worker_cron'] = "0 12 * * *"
  1701. # gitlab_rails['pseudonymizer_worker_cron'] = "0 23 * * *"
  1702. # gitlab_rails['elastic_index_bulk_cron'] = "*/1 * * * *"
  1703. ################################################################################
  1704. ## Kerberos (EE Only)
  1705. ##! Docs: https://docs.gitlab.com/ee/integration/kerberos.html#http-git-access
  1706. ################################################################################
  1707. # gitlab_rails['kerberos_enabled'] = true
  1708. # gitlab_rails['kerberos_keytab'] = /etc/http.keytab
  1709. # gitlab_rails['kerberos_service_principal_name'] = HTTP/gitlab.example.com@EXAMPLE.COM
  1710. # gitlab_rails['kerberos_use_dedicated_port'] = true
  1711. # gitlab_rails['kerberos_port'] = 8443
  1712. # gitlab_rails['kerberos_https'] = true
  1713. ################################################################################
  1714. ## Package repository (EE Only)
  1715. ##! Docs: https://docs.gitlab.com/ee/administration/maven_packages.md
  1716. ################################################################################
  1717. # gitlab_rails['packages_enabled'] = true
  1718. # gitlab_rails['packages_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/packages"
  1719. # gitlab_rails['packages_object_store_enabled'] = false
  1720. # gitlab_rails['packages_object_store_direct_upload'] = false
  1721. # gitlab_rails['packages_object_store_background_upload'] = true
  1722. # gitlab_rails['packages_object_store_proxy_download'] = false
  1723. # gitlab_rails['packages_object_store_remote_directory'] = "packages"
  1724. # gitlab_rails['packages_object_store_connection'] = {
  1725. # 'provider' => 'AWS',
  1726. # 'region' => 'eu-west-1',
  1727. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  1728. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  1729. # # # The below options configure an S3 compatible host instead of AWS
  1730. # # 'host' => 's3.amazonaws.com',
  1731. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  1732. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  1733. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  1734. # }
  1735. ################################################################################
  1736. ## Dependency proxy (EE Only)
  1737. ##! Docs: https://docs.gitlab.com/ee/administration/dependency_proxy.md
  1738. ################################################################################
  1739. # gitlab_rails['dependency_proxy_enabled'] = true
  1740. # gitlab_rails['dependency_proxy_storage_path'] = "/var/opt/gitlab/gitlab-rails/shared/dependency_proxy"
  1741. # gitlab_rails['dependency_proxy_object_store_enabled'] = false
  1742. # gitlab_rails['dependency_proxy_object_store_direct_upload'] = false
  1743. # gitlab_rails['dependency_proxy_object_store_background_upload'] = true
  1744. # gitlab_rails['dependency_proxy_object_store_proxy_download'] = false
  1745. # gitlab_rails['dependency_proxy_object_store_remote_directory'] = "dependency_proxy"
  1746. # gitlab_rails['dependency_proxy_object_store_connection'] = {
  1747. # 'provider' => 'AWS',
  1748. # 'region' => 'eu-west-1',
  1749. # 'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
  1750. # 'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
  1751. # # # The below options configure an S3 compatible host instead of AWS
  1752. # # 'host' => 's3.amazonaws.com',
  1753. # # 'aws_signature_version' => 4, # For creation of signed URLs. Set to 2 if provider does not support v4.
  1754. # # 'endpoint' => 'https://s3.amazonaws.com', # default: nil - Useful for S3 compliant services such as DigitalOcean Spaces
  1755. # # 'path_style' => false # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
  1756. # }
  1757. ################################################################################
  1758. ## GitLab Sentinel (EE Only)
  1759. ##! Docs: http://docs.gitlab.com/ce/administration/high_availability/redis.html#high-availability-with-sentinel
  1760. ################################################################################
  1761. ##! **Make sure you configured all redis['master_*'] keys above before
  1762. ##! continuing.**
  1763. ##! To enable Sentinel and disable all other services in this machine,
  1764. ##! uncomment the line below (if you've enabled Redis role, it will keep it).
  1765. ##! Docs: https://docs.gitlab.com/ee/administration/high_availability/redis.html
  1766. # redis_sentinel_role['enable'] = true
  1767. # sentinel['enable'] = true
  1768. ##! Bind to all interfaces, uncomment to specify an IP and bind to a single one
  1769. # sentinel['bind'] = '0.0.0.0'
  1770. ##! Uncomment to change default port
  1771. # sentinel['port'] = 26379
  1772. #### Support to run sentinels in a Docker or NAT environment
  1773. #####! Docs: https://redis.io/topics/sentinel#sentinel-docker-nat-and-possible-issues
  1774. # In an standard case, Sentinel will run in the same network service as Redis, so the same IP will be announce for Redis and Sentinel
  1775. # Only define these values if it is needed to announce for Sentinel a differen IP service than Redis
  1776. # sentinel['announce_ip'] = nil # If not defined, its value will be taken from redis['announce_ip'] or nil if not present
  1777. # sentinel['announce_port'] = nil # If not defined, its value will be taken from sentinel['port'] or nil if redis['announce_ip'] not present
  1778. ##! Quorum must reflect the amount of voting sentinels it take to start a
  1779. ##! failover.
  1780. ##! **Value must NOT be greater then the amount of sentinels.**
  1781. ##! The quorum can be used to tune Sentinel in two ways:
  1782. ##! 1. If a the quorum is set to a value smaller than the majority of Sentinels
  1783. ##! we deploy, we are basically making Sentinel more sensible to master
  1784. ##! failures, triggering a failover as soon as even just a minority of
  1785. ##! Sentinels is no longer able to talk with the master.
  1786. ##! 2. If a quorum is set to a value greater than the majority of Sentinels, we
  1787. ##! are making Sentinel able to failover only when there are a very large
  1788. ##! number (larger than majority) of well connected Sentinels which agree
  1789. ##! about the master being down.
  1790. # sentinel['quorum'] = 1
  1791. ### Consider unresponsive server down after x amount of ms.
  1792. # sentinel['down_after_milliseconds'] = 10000
  1793. ### Specifies the failover timeout in milliseconds.
  1794. ##! It is used in many ways:
  1795. ##!
  1796. ##! - The time needed to re-start a failover after a previous failover was
  1797. ##! already tried against the same master by a given Sentinel, is two
  1798. ##! times the failover timeout.
  1799. ##!
  1800. ##! - The time needed for a slave replicating to a wrong master according
  1801. ##! to a Sentinel current configuration, to be forced to replicate
  1802. ##! with the right master, is exactly the failover timeout (counting since
  1803. ##! the moment a Sentinel detected the misconfiguration).
  1804. ##!
  1805. ##! - The time needed to cancel a failover that is already in progress but
  1806. ##! did not produced any configuration change (SLAVEOF NO ONE yet not
  1807. ##! acknowledged by the promoted slave).
  1808. ##!
  1809. ##! - The maximum time a failover in progress waits for all the slaves to be
  1810. ##! reconfigured as slaves of the new master. However even after this time
  1811. ##! the slaves will be reconfigured by the Sentinels anyway, but not with
  1812. ##! the exact parallel-syncs progression as specified.
  1813. # sentinel['failover_timeout'] = 60000
  1814. ################################################################################
  1815. ## GitLab Sidekiq Cluster (EE only)
  1816. ################################################################################
  1817. ##! GitLab Enterprise Edition allows one to start an extra set of Sidekiq processes
  1818. ##! besides the default one. These processes can be used to consume a dedicated set
  1819. ##! of queues. This can be used to ensure certain queues always have dedicated
  1820. ##! workers, no matter the amount of jobs that need to be processed.
  1821. # sidekiq_cluster['enable'] = false
  1822. # sidekiq_cluster['ha'] = false
  1823. # sidekiq_cluster['log_directory'] = "/var/log/gitlab/sidekiq-cluster"
  1824. # sidekiq_cluster['interval'] = 5 # The number of seconds to wait between worker checks
  1825. # sidekiq_cluster['max_concurrency'] = 50 # The maximum number of threads each Sidekiq process should run
  1826. # sidekiq_cluster['min_concurrency'] = 0 # The minimum number of threads each Sidekiq process should run
  1827. ##! Each entry in the queue_groups array denotes a group of queues that have to be processed by a
  1828. ##! Sidekiq process. Multiple queues can be processed by the same process by
  1829. ##! separating them with a comma within the group entry
  1830. # sidekiq_cluster['queue_groups'] = [
  1831. # "process_commit,post_receive",
  1832. # "gitlab_shell"
  1833. # ]
  1834. #
  1835. ##! If negate is enabled then sidekiq-cluster will process all the queues that
  1836. ##! don't match those in queue_groups.
  1837. # sidekiq_cluster['negate'] = false
  1838. ################################################################################
  1839. ## Additional Database Settings (EE only)
  1840. ##! Docs: https://docs.gitlab.com/ee/administration/database_load_balancing.html
  1841. ################################################################################
  1842. # gitlab_rails['db_load_balancing'] = { 'hosts' => ['secondary1.example.com'] }
  1843. ################################################################################
  1844. ## GitLab Geo
  1845. ##! Docs: https://docs.gitlab.com/ee/gitlab-geo
  1846. ################################################################################
  1847. # geo_primary_role['enable'] = false
  1848. # geo_secondary_role['enable'] = false
  1849. # This is an optional identifier which Geo nodes can use to identify themselves.
  1850. # For example, if external_url is the same for two secondaries, you must specify
  1851. # a unique Geo node name for those secondaries.
  1852. #
  1853. # If it is blank, it defaults to external_url.
  1854. # gitlab_rails['geo_node_name'] = nil
  1855. # gitlab_rails['geo_registry_replication_enabled'] = true
  1856. # gitlab_rails['geo_registry_replication_primary_api_url'] = 'https://example.com:5000'
  1857. ################################################################################
  1858. ## GitLab Geo Secondary (EE only)
  1859. ################################################################################
  1860. # geo_secondary['auto_migrate'] = true
  1861. # geo_secondary['db_adapter'] = "postgresql"
  1862. # geo_secondary['db_encoding'] = "unicode"
  1863. # geo_secondary['db_collation'] = nil
  1864. # geo_secondary['db_database'] = "gitlabhq_geo_production"
  1865. # geo_secondary['db_pool'] = 1
  1866. # geo_secondary['db_username'] = "gitlab_geo"
  1867. # geo_secondary['db_password'] = nil
  1868. # geo_secondary['db_host'] = "/var/opt/gitlab/geo-postgresql"
  1869. # geo_secondary['db_port'] = 5431
  1870. # geo_secondary['db_socket'] = nil
  1871. # geo_secondary['db_sslmode'] = nil
  1872. # geo_secondary['db_sslcompression'] = 0
  1873. # geo_secondary['db_sslrootcert'] = nil
  1874. # geo_secondary['db_sslca'] = nil
  1875. # geo_secondary['db_fdw'] = true
  1876. ################################################################################
  1877. ## GitLab Geo Secondary Tracking Database (EE only)
  1878. ################################################################################
  1879. # geo_postgresql['enable'] = false
  1880. # geo_postgresql['ha'] = false
  1881. # geo_postgresql['dir'] = '/var/opt/gitlab/geo-postgresql'
  1882. # geo_postgresql['data_dir'] = '/var/opt/gitlab/geo-postgresql/data'
  1883. # geo_postgresql['pgbouncer_user'] = nil
  1884. # geo_postgresql['pgbouncer_user_password'] = nil
  1885. ##! `SQL_USER_PASSWORD_HASH` can be generated using the command `gitlab-ctl pg-password-md5 gitlab`
  1886. # geo_postgresql['sql_user_password'] = 'SQL_USER_PASSWORD_HASH'
  1887. ################################################################################
  1888. ## Unleash
  1889. ##! Docs: https://docs.gitlab.com/ee/user/project/operations/feature_flags.html
  1890. ################################################################################
  1891. # gitlab_rails['feature_flags_unleash_enabled'] = false
  1892. # gitlab_rails['feature_flags_unleash_url'] = nil
  1893. # gitlab_rails['feature_flags_unleash_app_name'] = nil
  1894. # gitlab_rails['feature_flags_unleash_instance_id'] = nil
  1895. ################################################################################
  1896. # Pgbouncer (EE only)
  1897. # See [GitLab PgBouncer documentation](http://docs.gitlab.com/omnibus/settings/database.html#enabling-pgbouncer-ee-only)
  1898. # See the [PgBouncer page](https://pgbouncer.github.io/config.html) for details
  1899. ################################################################################
  1900. # pgbouncer['enable'] = false
  1901. # pgbouncer['log_directory'] = '/var/log/gitlab/pgbouncer'
  1902. # pgbouncer['data_directory'] = '/var/opt/gitlab/pgbouncer'
  1903. # pgbouncer['env_directory'] = '/opt/gitlab/etc/pgbouncer/env'
  1904. # pgbouncer['env'] = {
  1905. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  1906. # }
  1907. # pgbouncer['listen_addr'] = '0.0.0.0'
  1908. # pgbouncer['listen_port'] = '6432'
  1909. # pgbouncer['pool_mode'] = 'transaction'
  1910. # pgbouncer['server_reset_query'] = 'DISCARD ALL'
  1911. # pgbouncer['application_name_add_host'] = '1'
  1912. # pgbouncer['max_client_conn'] = '2048'
  1913. # pgbouncer['default_pool_size'] = '100'
  1914. # pgbouncer['min_pool_size'] = '0'
  1915. # pgbouncer['reserve_pool_size'] = '5'
  1916. # pgbouncer['reserve_pool_timeout'] = '5.0'
  1917. # pgbouncer['server_round_robin'] = '0'
  1918. # pgbouncer['log_connections'] = '0'
  1919. # pgbouncer['server_idle_timeout'] = '30'
  1920. # pgbouncer['dns_max_ttl'] = '15.0'
  1921. # pgbouncer['dns_zone_check_period'] = '0'
  1922. # pgbouncer['dns_nxdomain_ttl'] = '15.0'
  1923. # pgbouncer['admin_users'] = %w(gitlab-psql postgres pgbouncer)
  1924. # pgbouncer['stats_users'] = %w(gitlab-psql postgres pgbouncer)
  1925. # pgbouncer['ignore_startup_parameters'] = 'extra_float_digits'
  1926. # pgbouncer['databases'] = {
  1927. # DATABASE_NAME: {
  1928. # host: HOSTNAME,
  1929. # port: PORT
  1930. # user: USERNAME,
  1931. # password: PASSWORD
  1932. ###! generate this with `echo -n '$password + $username' | md5sum`
  1933. # }
  1934. # ...
  1935. # }
  1936. # pgbouncer['logfile'] = nil
  1937. # pgbouncer['unix_socket_dir'] = nil
  1938. # pgbouncer['unix_socket_mode'] = '0777'
  1939. # pgbouncer['unix_socket_group'] = nil
  1940. # pgbouncer['auth_type'] = 'md5'
  1941. # pgbouncer['auth_hba_file'] = nil
  1942. # pgbouncer['auth_query'] = 'SELECT username, password FROM public.pg_shadow_lookup($1)'
  1943. # pgbouncer['users'] = {
  1944. # {
  1945. # name: USERNAME,
  1946. # password: MD5_PASSWORD_HASH
  1947. # }
  1948. # }
  1949. # postgresql['pgbouncer_user'] = nil
  1950. # postgresql['pgbouncer_user_password'] = nil
  1951. # pgbouncer['server_reset_query_always'] = 0
  1952. # pgbouncer['server_check_query'] = 'select 1'
  1953. # pgbouncer['server_check_delay'] = 30
  1954. # pgbouncer['max_db_connections'] = nil
  1955. # pgbouncer['max_user_connections'] = nil
  1956. # pgbouncer['syslog'] = 0
  1957. # pgbouncer['syslog_facility'] = 'daemon'
  1958. # pgbouncer['syslog_ident'] = 'pgbouncer'
  1959. # pgbouncer['log_disconnections'] = 1
  1960. # pgbouncer['log_pooler_errors'] = 1
  1961. # pgbouncer['stats_period'] = 60
  1962. # pgbouncer['verbose'] = 0
  1963. # pgbouncer['server_lifetime'] = 3600
  1964. # pgbouncer['server_connect_timeout'] = 15
  1965. # pgbouncer['server_login_retry'] = 15
  1966. # pgbouncer['query_timeout'] = 0
  1967. # pgbouncer['query_wait_timeout'] = 120
  1968. # pgbouncer['client_idle_timeout'] = 0
  1969. # pgbouncer['client_login_timeout'] = 60
  1970. # pgbouncer['autodb_idle_timeout'] = 3600
  1971. # pgbouncer['suspend_timeout'] = 10
  1972. # pgbouncer['idle_transaction_timeout'] = 0
  1973. # pgbouncer['pkt_buf'] = 4096
  1974. # pgbouncer['listen_backlog'] = 128
  1975. # pgbouncer['sbuf_loopcnt'] = 5
  1976. # pgbouncer['max_packet_size'] = 2147483647
  1977. # pgbouncer['tcp_defer_accept'] = 0
  1978. # pgbouncer['tcp_socket_buffer'] = 0
  1979. # pgbouncer['tcp_keepalive'] = 1
  1980. # pgbouncer['tcp_keepcnt'] = 0
  1981. # pgbouncer['tcp_keepidle'] = 0
  1982. # pgbouncer['tcp_keepintvl'] = 0
  1983. # pgbouncer['disable_pqexec'] = 0
  1984. ## Pgbouncer client TLS options
  1985. # pgbouncer['client_tls_sslmode'] = 'disable'
  1986. # pgbouncer['client_tls_ca_file'] = nil
  1987. # pgbouncer['client_tls_key_file'] = nil
  1988. # pgbouncer['client_tls_cert_file'] = nil
  1989. # pgbouncer['client_tls_protocols'] = 'all'
  1990. # pgbouncer['client_tls_dheparams'] = 'auto'
  1991. # pgbouncer['client_tls_ecdhcurve'] = 'auto'
  1992. #
  1993. ## Pgbouncer server TLS options
  1994. # pgbouncer['server_tls_sslmode'] = 'disable'
  1995. # pgbouncer['server_tls_ca_file'] = nil
  1996. # pgbouncer['server_tls_key_file'] = nil
  1997. # pgbouncer['server_tls_cert_file'] = nil
  1998. # pgbouncer['server_tls_protocols'] = 'all'
  1999. # pgbouncer['server_tls_ciphers'] = 'fast'
  2000. ################################################################################
  2001. # Repmgr (EE only)
  2002. ################################################################################
  2003. # repmgr['enable'] = false
  2004. # repmgr['cluster'] = 'gitlab_cluster'
  2005. # repmgr['database'] = 'gitlab_repmgr'
  2006. # repmgr['host'] = nil
  2007. # repmgr['node_number'] = nil
  2008. # repmgr['port'] = 5432
  2009. # repmgr['trust_auth_cidr_addresses'] = []
  2010. # repmgr['user'] = 'gitlab_repmgr'
  2011. # repmgr['sslmode'] = 'prefer'
  2012. # repmgr['sslcompression'] = 0
  2013. # repmgr['failover'] = 'automatic'
  2014. # repmgr['log_directory'] = '/var/log/gitlab/repmgrd'
  2015. # repmgr['node_name'] = nil
  2016. # repmgr['pg_bindir'] = '/opt/gitlab/embedded/bin'
  2017. # repmgr['service_start_command'] = '/opt/gitlab/bin/gitlab-ctl start postgresql'
  2018. # repmgr['service_stop_command'] = '/opt/gitlab/bin/gitlab-ctl stop postgresql'
  2019. # repmgr['service_reload_command'] = '/opt/gitlab/bin/gitlab-ctl hup postgresql'
  2020. # repmgr['service_restart_command'] = '/opt/gitlab/bin/gitlab-ctl restart postgresql'
  2021. # repmgr['service_promote_command'] = nil
  2022. # repmgr['promote_command'] = '/opt/gitlab/embedded/bin/repmgr standby promote -f /var/opt/gitlab/postgresql/repmgr.conf'
  2023. # repmgr['follow_command'] = '/opt/gitlab/embedded/bin/repmgr standby follow -f /var/opt/gitlab/postgresql/repmgr.conf'
  2024. # repmgr['upstream_node'] = nil
  2025. # repmgr['use_replication_slots'] = false
  2026. # repmgr['loglevel'] = 'INFO'
  2027. # repmgr['logfacility'] = 'STDERR'
  2028. # repmgr['logfile'] = nil
  2029. # repmgr['event_notification_command'] = nil
  2030. # repmgr['event_notifications'] = nil
  2031. # repmgr['rsync_options'] = nil
  2032. # repmgr['ssh_options'] = nil
  2033. # repmgr['priority'] = nil
  2034. #
  2035. # HA setting to specify if a node should attempt to be master on initialization
  2036. # repmgr['master_on_initialization'] = true
  2037. # repmgr['retry_promote_interval_secs'] = 300
  2038. # repmgr['witness_repl_nodes_sync_interval_secs'] = 15
  2039. # repmgr['reconnect_attempts'] = 6
  2040. # repmgr['reconnect_interval'] = 10
  2041. # repmgr['monitor_interval_secs'] = 2
  2042. # repmgr['master_response_timeout'] = 60
  2043. # repmgr['daemon'] = true
  2044. # repmgrd['enable'] = true
  2045. ################################################################################
  2046. # Consul (EEP only)
  2047. ################################################################################
  2048. # consul['enable'] = false
  2049. # consul['dir'] = '/var/opt/gitlab/consul'
  2050. # consul['user'] = 'gitlab-consul'
  2051. # consul['group'] = 'gitlab-consul'
  2052. # consul['config_file'] = '/var/opt/gitlab/consul/config.json'
  2053. # consul['config_dir'] = '/var/opt/gitlab/consul/config.d'
  2054. # consul['data_dir'] = '/var/opt/gitlab/consul/data'
  2055. # consul['log_directory'] = '/var/log/gitlab/consul'
  2056. # consul['env_directory'] = '/opt/gitlab/etc/consul/env'
  2057. # consul['env'] = {
  2058. # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
  2059. # }
  2060. # consul['monitoring_service_discovery'] = false
  2061. # consul['node_name'] = nil
  2062. # consul['script_directory'] = '/var/opt/gitlab/consul/scripts'
  2063. # consul['configuration'] = {
  2064. # 'client_addr' => nil,
  2065. # 'datacenter' => 'gitlab_consul',
  2066. # 'enable_script_checks' => true,
  2067. # 'server' => false
  2068. # }
  2069. # consul['services'] = []
  2070. # consul['service_config'] = {
  2071. # 'postgresql' => {
  2072. # 'service' => {
  2073. # 'name' => "postgresql",
  2074. # 'address' => '',
  2075. # 'port' => 5432,
  2076. # 'checks' => [
  2077. # {
  2078. # 'script' => "/var/opt/gitlab/consul/scripts/check_postgresql",
  2079. # 'interval' => "10s"
  2080. # }
  2081. # ]
  2082. # }
  2083. # }
  2084. # }
  2085. # consul['watchers'] = {
  2086. # 'postgresql' => {
  2087. # enable: false,
  2088. # handler: 'failover_pgbouncer'
  2089. # }
  2090. # }