set docker-distribution defaults cert.dir based on http.addr instead of hardcoded string
This commit is contained in:
parent
c44dddbd1b
commit
b9ed1de45c
1 changed files with 10 additions and 9 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue