-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.yml
230 lines (199 loc) · 8.48 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
---
# gitlab_ver: 13.10.2
gitlab_config_dest: /etc/gitlab
gitlab_config_privilege_escalate: True
gitlab_config_privilege_escalation_user: root
# Run gitlab-ctl reconfigure if config has changed
gitlab_config_reconfigure: True
# Take nightly backup of gitlab application and configuration
gitlab_config_auto_backup_enabled: True
# Required
gitlab_config_external_url: http://example.com
gitlab_config_letsencrypt_enabled: true
# Optional - Following are NOT default values, are only examples
# to configure the gitlab rails environment to make requests through a web proxy
# https://gitlab.com/gitlab-org/gitlab-foss/issues/680
#proxy_env:
# http_proxy: http://webproxy.example.com:3128
# http_proxy: http://webproxy.example.com:3128
# no_proxy: '*.example.com'
# gitlab_config_timezone: GMT
# gitlab_config_email_enabled: true
# gitlab_config_email_from: [email protected]
# gitlab_config_email_display_name: Example
# gitlab_config_email_reply_to: [email protected]
# gitlab_config_cronjob_notification_email: [email protected]
# gitlab_config_impersonation_enabled: true
# gitlab_config_usage_ping: true
# gitlab_config_ldap_enabled: true
# gitlab_config_ldap_label: LDAP
# gitlab_config_ldap_host: _your_ldap_server
# gitlab_config_ldap_port: 389
# gitlab_config_ldap_uid: sAMAccountName
# gitlab_config_ldap_bind_dn: _the_full_dn_of_the_user_you_will_bind_with
# gitlab_config_ldap_password: _the_password_of_the_bind_user
# gitlab_config_ldap_encryption: plain # "start_tls" or "simple_tls" or "plain"
# gitlab_config_ldap_verify_certificates: true
# gitlab_config_ldap_ssl_version: '' # eg "TLSv1_1", if the OpenSSL default is not appropriate
# gitlab_config_ldap_timeout: 10 # timeout for LDAP queries, in seconds
# gitlab_config_ldap_active_directory: true
# gitlab_config_allow_username_or_email_login: false
# gitlab_config_ldap_lowercase_usernames: false # If lowercase_usernames is enabled, GitLab will lower case the username
# gitlab_config_ldap_block_auto_created_users: false
# gitlab_config_ldap_base: ''
# gitlab_config_ldap_user_filter: ''
# gitlab_config_ldap_attributes:
# username: "['uid']"
# email: "['mail']"
# name: cn
# first_name: givenName
# last_name: sn
# gitlab_config_ldap_group_base: ou=groups,dc=example,dc=com
# gitlab_config_ldap_admin_group: my_admin_group
# gitlab_config_ldap_external_groups:
# - interns
# - contractors
# gitlab_config_ldap_sync_worker_cron: "0 */12 * * *"
# gitlab_config_omniauth_enabled: nil
# gitlab_config_omniauth_allow_sso:
# - saml
# gitlab_config_omniauth_sync_email_from_provider: saml
# gitlab_config_omniauth_sync_profile_from_provider:
# - saml
# gitlab_config_omniauth_sync_profile_attributes:
# - email
# gitlab_config_omniauth_auto_sign_in_with_provider: saml
# gitlab_config_omniauth_block_auto_created_users: true
# gitlab_config_omniauth_auto_link_ldap_user: false
# gitlab_config_omniauth_auto_link_saml_user: false
# gitlab_config_omniauth_external_providers:
# - twitter
# - google_oauth2
# gitlab_config_omniauth_allow_bypass_two_factor:
# - google_oauth2
# gitlab_config_omniauth_providers: |+
# [
# {
# "name" => "google_oauth2",
# "app_id" => "YOUR APP ID",
# "app_secret" => "YOUR APP SECRET",
# "args" => {"access_type" => "offline", "approval_prompt" => ""},
# },
# ]
gitlab_config_manage_backup_path: False
gitlab_config_backup_use_nfs: False
gitlab_config_backup_restore_enabled: False
gitlab_config_backup_restore_check_config: True
gitlab_config_backup_restore_verify_db_secrets: False
## Backup Environment Variables
# gitlab_config_backup_restore_prompt_disable: True
gitlab_config_backup_strategy: copy
# gitlab_config_backup_timestamp_prefix: [TIMESTAMP]
# gitlab_config_backup_gzip_rsyncable: true
# gitlab_config_backup_group_duration: daily|weekly
# gitlab_config_backup_exclude_directories:
# - db # (databases)
# - uploads # (attachments)
# - builds # (CI job output logs)
# - artifacts # (CI job artifacts)
# - lfs # (LFS objects)
# - registry # (Container Registry Images)
# - pages # (Pages Content)
# - repositories # (Git repositories data)
# - tar # (Tar Creation)
# Note: v13.3+ https://docs.gitlab.com/ee/raketasks/backup_restore.html#back-up-git-repositories-concurrently
# gitlab_config_backup_concurrency: 1
# gitlab_config_backup_storage_concurrency: 1
## Backup:Restore Environment Variables
# gitlab_config_backup_restore_timestamp: [TIMESTAMP]-{{ gitlab_config_mode | default("omnibus") }}
# gitlab_config_backup_path: /var/opt/gitlab/backups
# gitlab_config_backup_archive_permissions: '0644'
# gitlab_config_backup_keep_time: 604800
# gitlab_config_backup_upload:
# ':provider': Local
# ':local_root': /mnt/backups
# gitlab_config_backup_upload_remote_directory: gitlab_backups
# gitlab_config_backup_upload:
# provider: AWS
# region: us-east-1
# aws_access_key_id: AKIAKIAKI
# aws_secret_access_key: secret123
# endPoint: https://s3.abc.com
# gitlab_config_backup_upload_remote_directory: my.s3.gitlab-backups
gitlab_config_backup_application_data: True
gitlab_config_backup_application_data_schedule:
# month: '*'
# weekday: '*'
# day: '*'
# hour: '*'
# minute: '*'
gitlab_config_backup_config_data: True
gitlab_config_backup_config_data_schedule:
# month: '*'
# weekday: '*'
# day: '*'
# hour: '*'
# minute: '*'
# gitlab_config_backup_config_data_path: /var/opt/gitlab/config-backups
# gitlab_config_backup_config_data_addl_cmds: []
# gitlab_config_smtp_enabled: true
# gitlab_config_smtp_address: example.com
# gitlab_config_smtp_port: 25
# gitlab_config_registry_enabled: true
# gitlab_config_registry_external_url: https://registry.gitlab.example.com:5005
# gitlab_config_registry_backend_storage:
# s3:
# accesskey: s3-access-key
# secretkey: s3-secret-key-for-access-key
# bucket: your-s3-bucket
# region: your-s3-region
# regionendpoint: https://s3.xyz.com
# gitlab_config_registry_nginx_ssl_certificate: /etc/gitlab/ssl/gitlab.example.com.crt
# gitlab_config_registry_nginx_ssl_certificate_key: /etc/gitlab/ssl/gitlab.example.com.key
# gitlab_config_packages_enabled: true
# gitlab_config_packages_storage_path: "/var/opt/gitlab/gitlab-rails/shared/packages"
# gitlab_config_packages_backend_storage_enabled: true
# gitlab_config_packages_backend_storage_direct_upload: false # Use Object Storage directly for uploads instead of background uploads if enabled
# gitlab_config_packages_backend_storage_background_upload: true # Temporary option to limit automatic upload
# gitlab_config_packages_backend_storage_proxy_download: false # Passthrough all downloads via GitLab instead of using Redirects to Object Storage
# gitlab_config_packages_backend_storage_bucket: bucket_name
# gitlab_config_packages_backend_storage_connection:
# ## If the provider is AWS S3
# provider: AWS
# region: eu-west-1
# aws_access_key_id: AWS_ACCESS_KEY_ID
# aws_secret_access_key AWS_SECRET_ACCESS_KEY
# ## If the provider is other than AWS (an S3-compatible one)
# host: s3.xyz.com
# aws_signature_version: 4 # For creation of signed URLs. Set to 2 if provider does not support v4.
# endpoint: https://s3.xyz.com
# path_style: false # If true, use 'host/bucket_name/object' instead of 'bucket_name.host/object'.
# gitlab_config_postgresql_shared_buffers: 256MB
# gitlab_config_prometheus_enabled: true
# gitlab_config_prometheus_monitoring_enabled: true
# gitlab_config_prometheus_node_exporter_enabled: true
# gitlab_config_prometheus_redis_exporter_enabled: true
# gitlab_config_prometheus_postgres_exporter_enabled: true
# gitlab_config_prometheus_gitlab_monitor_enabled: true
# To enable HTTPS, change the gitlab_config_external_url to https://example.com
gitlab_config_enable_https: False
# gitlab_config_src_pki_dir: ~/pki
# gitlab_config_dest_pki_dir: /etc/gitlab/ssl
# gitlab_config_pki_key_suffix: '.key'
# gitlab_config_pki_cert_suffix: '.crt'
# gitlab_config_nginx_redirect_to_https: true
# Pass custom environment variables - https://docs.gitlab.com/omnibus/settings/environment-variables.html
# gitlab_config_custom_env_vars:
# gitlab_rails:
# - key: http_proxy
# value: http://httpproxy.com:8080
# - key: https_proxy
# value: https://httpsproxy.com:8080
# - key: no_proxy
# value: localhost,127.0.0.1
# For all other settings listed on - https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template ,
# use following map to add custom settings
# gitlab_config_custom: |+
# sidekiq['log_directory'] = "/var/log/gitlab/sidekiq"
# redis['enable'] = true
# nginx['ssl_verify_client'] = "off"