set docker-distribution defaults cert.dir based on http.addr instead of hardcoded string

This commit is contained in:
Adam Miller 2016-02-16 19:28:49 +00:00
parent c44dddbd1b
commit b9ed1de45c

View file

@ -5,15 +5,6 @@
# where to put the config.yml on the remote machine
conf_path: "/etc/docker-distribution/registry/config.yml"
# Cert information to place certificate files on system
cert:
private_path: "PRIVATE_PATH_TO_CERT_DIR"
dir: "/etc/pki/docker/{{ ansible_fqdn }}:5000"
src_name: "ca.crt"
src_key_name: "ca.key"
dest_name: "ca.crt"
dest_key_name: "ca.key"
# Config directives
tls:
enabled: False
@ -29,3 +20,13 @@ storage:
rootdirectory: "/var/lib/registry/"
http:
addr: ":5000"
# Cert information to place certificate files on system
cert:
private_path: "PRIVATE_PATH_TO_CERT_DIR"
dir: "/etc/pki/docker/{{ ansible_fqdn }}{{ http.addr }}"
src_name: "ca.crt"
src_key_name: "ca.key"
dest_name: "ca.crt"
dest_key_name: "ca.key"