New feature: Gitlab-CE deployment #1

Merged
ludal merged 1 commits from gitlab into master 2023-09-06 16:29:23 +02:00
Owner

Example of working variables:

docker_services:
  - traefik
  - gitlab

traefik_domain: dev.example.com
traefik_letsencrypt_email: contact@example.com

gitlab_version: 'latest'
gitlab_root_password: 'vault-this-thingy'

gitlab_domain: gitlab.example.com
gitlab_registry_domain: registry.example.com

gitlab_ports:
  - '{{ gitlab_shell_ssh_port }}:22'
  - 8880:80
  - 8060:8060

gitlab_shell_ssh_port: 2222
gitlab_backup_path: /backups
gitlab_backup_cron:
  minute: 30
  hour: 2

gitlab_omnibus_config: |
  external_url 'https://{{ gitlab_domain }}'
  nginx['listen_port'] = 80
  nginx['listen_https'] = false
  nginx['client_max_body_size'] = '250m'
  node_exporter['listen_address'] = '0.0.0.0:9100'
  gitlab_workhorse['prometheus_listen_addr'] = "0.0.0.0:9229"
  gitlab_exporter['listen_address'] = '0.0.0.0'
  gitlab_exporter['listen_port'] = '9168'
  sidekiq['listen_address'] = '0.0.0.0'
  redis_exporter['listen_address'] = '0.0.0.0:9121'
  postgres_exporter['listen_address'] = '0.0.0.0:9187'
  gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8']
  gitlab_rails['prometheus_address'] = '127.0.0.1:9090'
  gitlab_rails['initial_root_password'] = File.read('/run/secrets/gitlab_root_password')
  gitlab_rails['gitlab_shell_ssh_port'] = {{ gitlab_shell_ssh_port|default('2221') }}
  gitlab_rails['time_zone'] = 'Europe/Paris'
  gitlab_rails['git_max_size'] = 152428800 # 150.megabytes
  gitlab_rails['git_timeout'] = 300
  gitlab_rails['gitlab_default_projects_features_issues'] = true
  gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
  gitlab_rails['gitlab_default_projects_features_wiki'] = true
  gitlab_rails['gitlab_default_projects_features_snippets'] = true
  gitlab_rails['gitlab_default_projects_features_builds'] = true
  gitlab_rails['artifacts_enabled'] = true
  gitlab_rails['backup_keep_time'] = 76400
  gitlab_rails['smtp_enable'] = true
  gitlab_rails['smtp_address'] = '127.0.0.1'
  gitlab_rails['smtp_port'] = '25'
  gitlab_rails['smtp_authentication'] = false
  gitlab_rails['smtp_openssl_verify_mode'] = 'none'
  gitlab_rails['gitlab_email_from'] = 'no-reply@example.com'
Example of working variables: ```yml docker_services: - traefik - gitlab traefik_domain: dev.example.com traefik_letsencrypt_email: contact@example.com gitlab_version: 'latest' gitlab_root_password: 'vault-this-thingy' gitlab_domain: gitlab.example.com gitlab_registry_domain: registry.example.com gitlab_ports: - '{{ gitlab_shell_ssh_port }}:22' - 8880:80 - 8060:8060 gitlab_shell_ssh_port: 2222 gitlab_backup_path: /backups gitlab_backup_cron: minute: 30 hour: 2 gitlab_omnibus_config: | external_url 'https://{{ gitlab_domain }}' nginx['listen_port'] = 80 nginx['listen_https'] = false nginx['client_max_body_size'] = '250m' node_exporter['listen_address'] = '0.0.0.0:9100' gitlab_workhorse['prometheus_listen_addr'] = "0.0.0.0:9229" gitlab_exporter['listen_address'] = '0.0.0.0' gitlab_exporter['listen_port'] = '9168' sidekiq['listen_address'] = '0.0.0.0' redis_exporter['listen_address'] = '0.0.0.0:9121' postgres_exporter['listen_address'] = '0.0.0.0:9187' gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8'] gitlab_rails['prometheus_address'] = '127.0.0.1:9090' gitlab_rails['initial_root_password'] = File.read('/run/secrets/gitlab_root_password') gitlab_rails['gitlab_shell_ssh_port'] = {{ gitlab_shell_ssh_port|default('2221') }} gitlab_rails['time_zone'] = 'Europe/Paris' gitlab_rails['git_max_size'] = 152428800 # 150.megabytes gitlab_rails['git_timeout'] = 300 gitlab_rails['gitlab_default_projects_features_issues'] = true gitlab_rails['gitlab_default_projects_features_merge_requests'] = true gitlab_rails['gitlab_default_projects_features_wiki'] = true gitlab_rails['gitlab_default_projects_features_snippets'] = true gitlab_rails['gitlab_default_projects_features_builds'] = true gitlab_rails['artifacts_enabled'] = true gitlab_rails['backup_keep_time'] = 76400 gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = '127.0.0.1' gitlab_rails['smtp_port'] = '25' gitlab_rails['smtp_authentication'] = false gitlab_rails['smtp_openssl_verify_mode'] = 'none' gitlab_rails['gitlab_email_from'] = 'no-reply@example.com' ```
tchivert self-assigned this 2023-09-04 16:33:35 +02:00
tchivert added 1 commit 2023-09-04 16:33:36 +02:00
tchivert changed title from New feature: Gitlab-CE deployment to WIP: New feature: Gitlab-CE deployment 2023-09-04 16:54:45 +02:00
ludal changed title from WIP: New feature: Gitlab-CE deployment to New feature: Gitlab-CE deployment 2023-09-06 16:28:30 +02:00
ludal merged commit 308d877d8f into master 2023-09-06 16:29:23 +02:00
ludal deleted branch gitlab 2023-09-06 16:29:23 +02:00
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
No Assignees tchivert
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ansible-roles/docker-services#1
No description provided.