refactor(web-app-gitlab): restructure configuration and add OIDC support

- Added oidc feature flag in config
- Removed obsolete credentials schema (initial_root_password)
- Updated docker-compose.yml.j2 to use explicit GITLAB_* vars (image, version, container, volumes)
- Moved initial_root_password into vars/main.yml
- Introduced GITLAB_OMNIBUS_BASE and GITLAB_OMNIBUS_OIDC config lists
- Switched env.j2 to use GITLAB_OMNIBUS_ALL join

See conversation: https://chatgpt.com/share/68b1962c-3ee0-800f-a858-d4590ff6132a
This commit is contained in:
2025-08-29 14:02:46 +02:00
parent 3ed84717a7
commit f4ea6c6c0f
5 changed files with 90 additions and 44 deletions

View File

@@ -1,8 +1,9 @@
{% include 'roles/docker-compose/templates/base.yml.j2' %}
web:
image: "{{ gitlab_image }}:{{ gitlab_version }}"
hostname: '{{ domains | get_domain(application_id) }}'
image: "{{ GITLAB_IMAGE }}:{{ GITLAB_VERSION }}"
hostname: '{{ GITLAB_HOSTNAME }}'
container_name: "{{ GITLAB_CONTAINER }}"
{% include 'roles/docker-container/templates/base.yml.j2' %}
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:80"
@@ -17,7 +18,10 @@
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
config:
name: {{ GITLAB_CONF_VOLUME }}
logs:
name: {{ GITLAB_LOGS_VOLUME }}
data:
name: {{ GITLAB_DATA_VOLUME }}
{% include 'roles/docker-compose/templates/networks.yml.j2' %}