Split staging and prod docker push certs

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-04-10 22:06:44 +02:00
parent 989c36132f
commit 3a8e11cf7e
8 changed files with 27 additions and 5 deletions

View file

@ -0,0 +1 @@
/C=US/ST=NM/L=Raleigh/O=Red Hat/OU=Fedora Project/CN=docker-registry-internal-stg:xxj31ZMTZzkVA

View file

@ -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

View file

@ -0,0 +1 @@
/C=US/ST=NM/L=Raleigh/O=Red Hat/OU=Fedora Project/CN=docker-registry-internal-stg:xxj31ZMTZzkVA

View file

@ -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

View file

@ -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

View file

@ -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>