Skip to content

Commit

Permalink
Merge pull request geerlingguy#114 from upciti/container_registry
Browse files Browse the repository at this point in the history
Add configuration options for gitlab container registry.
  • Loading branch information
geerlingguy authored May 22, 2020
2 parents 5859d11 + dedfec4 commit 5d8b964
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ gitlab_email_enabled: "false"
gitlab_email_from: "gitlab@example.com"
gitlab_email_display_name: "Gitlab"
gitlab_email_reply_to: "gitlab@example.com"

# Registry configuration.
gitlab_registry_enable: "false"
gitlab_registry_external_url: "https://gitlab.example.com:4567"
gitlab_registry_nginx_ssl_certificate: "/etc/gitlab/ssl/gitlab.crt"
gitlab_registry_nginx_ssl_certificate_key: "/etc/gitlab/ssl/gitlab.key"
6 changes: 6 additions & 0 deletions templates/gitlab.rb.j2
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ nginx['ssl_verify_client'] = "{{ gitlab_nginx_ssl_verify_client }}"
nginx['ssl_client_certificate'] = "{{ gitlab_nginx_ssl_client_certificate }}"
{% endif %}

# GitLab registry.
registry['enable'] = {{ gitlab_registry_enable }}
registry_external_url "{{ gitlab_registry_external_url }}"
registry_nginx['ssl_certificate'] = "{{ gitlab_registry_nginx_ssl_certificate }}"
registry_nginx['ssl_certificate_key'] = "{{ gitlab_registry_nginx_ssl_certificate_key }}"

{% if gitlab_extra_settings is defined %}
# Extra configuration
{% for extra in gitlab_extra_settings %}
Expand Down

0 comments on commit 5d8b964

Please sign in to comment.