File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
roles/docker-registry-proxy Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ docker_proxy_ecr_access_id:
9
9
docker_proxy_ecr_secret_key :
10
10
docker_proxy_ecr_region :
11
11
12
- docker_proxy_ssl_enabled :
12
+ # ssl config
13
+ docker_proxy_ssl_enabled : false
14
+ docker_proxy_ssl_copy_certs : false
13
15
docker_proxy_ssl_host_path : /registry
16
+ docker_proxy_ssl_host_cert_name : certificate.pem
17
+ docker_proxy_ssl_host_key_name : key.pem
14
18
docker_proxy_ssl_container_path : /opt/nginx
Original file line number Diff line number Diff line change 10
10
with_items :
11
11
- certificate.pem
12
12
- key.pem
13
- when : docker_proxy_ssl_enabled | bool
13
+ when :
14
+ - docker_proxy_ssl_enabled | bool
15
+ - docker_proxy_ssl_copy_certs | bool
14
16
15
17
- name : Print current cache directory size information
16
18
become : true
44
46
-v {{ docker_proxy_cache_path }}:/cache
45
47
46
48
{% if docker_proxy_ssl_enabled | bool %}
47
- -v {{ docker_proxy_ssl_host_path }}/certificate.pem :{{ docker_proxy_ssl_container_path }}/certificate.pem
48
- -v {{ docker_proxy_ssl_host_path }}/key.pem :{{ docker_proxy_ssl_container_path }}/key.pem
49
+ -v {{ docker_proxy_ssl_host_path }}/{{ docker_proxy_ssl_host_cert_name }} :{{ docker_proxy_ssl_container_path }}/certificate.pem
50
+ -v {{ docker_proxy_ssl_host_path }}/{{ docker_proxy_ssl_host_key_name }} :{{ docker_proxy_ssl_container_path }}/key.pem
49
51
50
52
-e ENABLE_SSL=true
51
53
-e REGISTRY_HTTP_TLS_KEY={{ docker_proxy_ssl_container_path }}/key.pem
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ echo " Performing syntax check on ansible playbooks"
6
+
7
+ ansible-playbook -i hosts --syntax-check playbook-docker-registry-proxy.yaml
You can’t perform that action at this time.
0 commit comments