mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 03:52:09 +08:00
initial setup for docker-registry
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
@@ -28,3 +28,63 @@
|
||||
|
||||
handlers:
|
||||
- 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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user