mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 22:11:01 +08:00
docker-registry listen on port 5000, edge proxies will handle the rest
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
@@ -62,31 +62,10 @@
|
||||
}
|
||||
},
|
||||
httpd: {
|
||||
addr: "localhost:5000"
|
||||
addr: "*:5000"
|
||||
},
|
||||
when: env == "staging"
|
||||
}
|
||||
- {
|
||||
role: docker-distribution-proxy,
|
||||
servername: registry.stg.fedorproject.org,
|
||||
ssl: {
|
||||
destdir: "/etc/pki/docker-distribution/",
|
||||
certfile_src: "{{private}}/files/docker-registry/staging/docker-registry-internal.pem",
|
||||
certfile_dest: "docker-registry-internal.pem",
|
||||
keyfile_src: "{{private}}/files/docker-registry/staging/docker-registry-internal.key",
|
||||
keyfile_dest: "docker-registry-internal.key",
|
||||
},
|
||||
auth: {
|
||||
type: basic,
|
||||
basic: {
|
||||
destdir: "/etc/httpd/",
|
||||
userfile_src: "{{private}}/files/httpd/osbs.htpasswd",
|
||||
userfile_dest: "osbs.htpasswd",
|
||||
}
|
||||
},
|
||||
when: env == "staging"
|
||||
}
|
||||
|
||||
# PROD
|
||||
- {
|
||||
role: docker-distribution,
|
||||
@@ -108,29 +87,7 @@
|
||||
}
|
||||
},
|
||||
httpd: {
|
||||
addr: "localhost:5000"
|
||||
addr: "*:5000"
|
||||
},
|
||||
when: env == "production"
|
||||
}
|
||||
- {
|
||||
role: docker-distribution-proxy,
|
||||
servername: registry.fedorproject.org,
|
||||
ssl: {
|
||||
destdir: "/etc/pki/docker-distribution/",
|
||||
certfile_src: "{{private}}/files/docker-registry/docker-registry-internal.pem",
|
||||
certfile_dest: "docker-registry-internal.pem",
|
||||
keyfile_src: "{{private}}/files/docker-registry/docker-registry-internal.key",
|
||||
keyfile_dest: "docker-registry-internal.key",
|
||||
},
|
||||
auth: {
|
||||
type: basic,
|
||||
basic: {
|
||||
destdir: "/etc/httpd/",
|
||||
userfile_src: "{{private}}/files/httpd/osbs.htpasswd",
|
||||
userfile_dest: "osbs.htpasswd",
|
||||
}
|
||||
},
|
||||
when: env == "production"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user