Split staging and prod docker push certs
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
989c36132f
commit
3a8e11cf7e
8 changed files with 27 additions and 5 deletions
1
roles/fedora-web/candidate-registry/files/passwd-staging
Normal file
1
roles/fedora-web/candidate-registry/files/passwd-staging
Normal file
|
@ -0,0 +1 @@
|
|||
/C=US/ST=NM/L=Raleigh/O=Red Hat/OU=Fedora Project/CN=docker-registry-internal-stg:xxj31ZMTZzkVA
|
|
@ -7,8 +7,18 @@
|
|||
- fedora-web
|
||||
- fedora-web/candidate-registry
|
||||
|
||||
- name: Copy over the registry passwd
|
||||
copy: src=passwd dest=/etc/httpd/conf.d/candidate-registry.fedoraproject.org/passwd
|
||||
- name: Copy over the registry CA
|
||||
copy: src="{{private}}/files/docker-registry/{{env}}/docker-registry-ca.pem"
|
||||
dest="/etc/pki/httpd/registry-ca-{{env}}.cert"
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/candidate-registry
|
||||
|
||||
- name: Copy over the registry passwd
|
||||
copy: src="passwd-{{env}}" dest=/etc/httpd/conf.d/candidate-registry.fedoraproject.org/passwd
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
|
|
1
roles/fedora-web/registry/files/passwd-staging
Normal file
1
roles/fedora-web/registry/files/passwd-staging
Normal file
|
@ -0,0 +1 @@
|
|||
/C=US/ST=NM/L=Raleigh/O=Red Hat/OU=Fedora Project/CN=docker-registry-internal-stg:xxj31ZMTZzkVA
|
|
@ -13,8 +13,18 @@
|
|||
- fedora-web
|
||||
- fedora-web/registry
|
||||
|
||||
- name: Copy over the registry CA
|
||||
copy: src="{{private}}/files/docker-registry/{{env}}/docker-registry-ca.pem"
|
||||
dest="/etc/pki/httpd/registry-ca-{{env}}.cert"
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
- fedora-web
|
||||
- fedora-web/candidate-registry
|
||||
|
||||
- name: Copy over the registry passwd
|
||||
copy: src=passwd dest=/etc/httpd/conf.d/registry.fedoraproject.org/passwd
|
||||
copy: src="passwd-{{env}}" dest=/etc/httpd/conf.d/registry.fedoraproject.org/passwd
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
|
|
|
@ -8,7 +8,7 @@ ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
|||
|
||||
SSLVerifyClient optional
|
||||
SSLVerifyDepth 1
|
||||
SSLCACertificateFile /etc/pki/httpd/fedora-server-ca.cert
|
||||
SSLCACertificateFile /etc/pki/httpd/registry-ca-{{env}}.cert
|
||||
SSLOptions +FakeBasicAuth
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ RewriteRule ^/(.*)$ http://localhost:6081/$1 [P,L]
|
|||
|
||||
SSLVerifyClient optional
|
||||
SSLVerifyDepth 1
|
||||
SSLCACertificateFile /etc/pki/httpd/fedora-server-ca.cert
|
||||
SSLCACertificateFile /etc/pki/httpd/registry-ca-{{env}}.cert
|
||||
SSLOptions +FakeBasicAuth
|
||||
|
||||
<Directory /srv/web/registry-signatures>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue