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
|
# where to put the config.yml on the remote machine
|
||||||
conf_path: "/etc/docker-distribution/registry/config.yml"
|
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
|
# Config directives
|
||||||
tls:
|
tls:
|
||||||
enabled: False
|
enabled: False
|
||||||
|
@ -29,3 +20,13 @@ storage:
|
||||||
rootdirectory: "/var/lib/registry/"
|
rootdirectory: "/var/lib/registry/"
|
||||||
http:
|
http:
|
||||||
addr: ":5000"
|
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