diff --git a/roles/gitlab/defaults/main.yml b/roles/gitlab/defaults/main.yml index 316ce5b..ac04a90 100644 --- a/roles/gitlab/defaults/main.yml +++ b/roles/gitlab/defaults/main.yml @@ -99,6 +99,10 @@ gitlab_csp: gitlab_registry: enabled: false +# Gitlab dependency proxy feature (see https://docs.gitlab.com/ee/administration/packages/dependency_proxy.html) +gitlab_dependency_proxy: + enabled: false + # Enable the packages feature (see https://docs.gitlab.com/ee/administration/packages/index.html) gitlab_packages: enabled: false diff --git a/roles/gitlab/templates/docker-compose.yml b/roles/gitlab/templates/docker-compose.yml index 357c020..8b414c7 100644 --- a/roles/gitlab/templates/docker-compose.yml +++ b/roles/gitlab/templates/docker-compose.yml @@ -106,6 +106,11 @@ services: gitlab_rails['packages_enabled'] = true {% endif %} +{% if gitlab_dependency_proxy.enabled %} + # Gitlab dependency proxy + gitlab_rails['dependency_proxy_enabled'] = true +{% endif %} + {% if gitlab_registry.enabled %} # Gitlab registry gitlab_rails['registry_enabled'] = true