initial setup for docker-registry
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
5e9e1057ee
commit
17268ddd06
1 changed files with 60 additions and 0 deletions
|
@ -28,3 +28,63 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: setup docker distribution registry
|
||||||
|
hosts: docker-registry:docker-registry-stg
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- /srv/private/ansible/vars.yml
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
|
||||||
|
# NOTE: tls is disabled for docker-distribution because we are listening only
|
||||||
|
# on localhost and all external connections will be through httpd which
|
||||||
|
# will be SSL enalbed.
|
||||||
|
roles:
|
||||||
|
- {
|
||||||
|
role: docker-distribution,
|
||||||
|
conf_path: "/etc/docker-distribution/registry/config.yml",
|
||||||
|
tls: {
|
||||||
|
enabled: False,
|
||||||
|
},
|
||||||
|
log: {
|
||||||
|
fields: {
|
||||||
|
service: "registry"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
storage: {
|
||||||
|
cache: {
|
||||||
|
layeredinfo: "inmemory"
|
||||||
|
},
|
||||||
|
filesystem: {
|
||||||
|
rootdirectory: "/srv/"
|
||||||
|
},
|
||||||
|
httpd: {
|
||||||
|
addr: "localhost:5000"
|
||||||
|
},
|
||||||
|
when: env == "staging"
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
role: docker-distribution,
|
||||||
|
conf_path: "/etc/docker-distribution/registry/config.yml",
|
||||||
|
tls: {
|
||||||
|
enabled: False,
|
||||||
|
},
|
||||||
|
log: {
|
||||||
|
fields: {
|
||||||
|
service: "registry"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
storage: {
|
||||||
|
cache: {
|
||||||
|
layeredinfo: "inmemory"
|
||||||
|
},
|
||||||
|
filesystem: {
|
||||||
|
rootdirectory: "/srv/"
|
||||||
|
},
|
||||||
|
httpd: {
|
||||||
|
addr: "localhost:5000"
|
||||||
|
},
|
||||||
|
when: env == "production"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue