differentiate between prod and staging
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
5d2b0bad46
commit
43f868cf02
1 changed files with 24 additions and 21 deletions
|
@ -41,6 +41,7 @@
|
|||
# on localhost and all external connections will be through httpd which
|
||||
# will be SSL enalbed.
|
||||
roles:
|
||||
# STAGING
|
||||
- {
|
||||
role: docker-distribution,
|
||||
conf_path: "/etc/docker-distribution/registry/config.yml",
|
||||
|
@ -65,6 +66,28 @@
|
|||
},
|
||||
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,
|
||||
conf_path: "/etc/docker-distribution/registry/config.yml",
|
||||
|
@ -89,26 +112,6 @@
|
|||
},
|
||||
when: env == "production"
|
||||
}
|
||||
- {
|
||||
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"
|
||||
}
|
||||
- {
|
||||
role: docker-distribution-proxy,
|
||||
servername: registry.fedorproject.org,
|
||||
|
@ -127,7 +130,7 @@
|
|||
userfile_dest: "osbs.htpasswd",
|
||||
}
|
||||
},
|
||||
when: env == "staging"
|
||||
when: env == "production"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue