From 084e3ea9eef7ea57bed7bdb36ebc7e3fe45fb9c4 Mon Sep 17 00:00:00 2001 From: Gan Huang Date: Wed, 10 Aug 2016 15:21:48 +0800 Subject: docker-registry's middleware stanza should contain 'registry' and 'storage' by default --- roles/openshift_hosted/templates/registry_config.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles') diff --git a/roles/openshift_hosted/templates/registry_config.j2 b/roles/openshift_hosted/templates/registry_config.j2 index ea5626642..5aa7d025f 100644 --- a/roles/openshift_hosted/templates/registry_config.j2 +++ b/roles/openshift_hosted/templates/registry_config.j2 @@ -58,6 +58,8 @@ auth: openshift: realm: openshift middleware: + registry: + - name: openshift repository: - name: openshift options: @@ -69,4 +71,7 @@ middleware: baseurl: {{ openshift.hosted.registry.storage.s3.cloudfront.baseurl }} privatekey: {{ openshift.hosted.registry.storage.s3.cloudfront.privatekeyfile }} keypairid: {{ openshift.hosted.registry.storage.s3.cloudfront.keypairid }} +{% else %} + storage: + - name: openshift {% endif -%} -- cgit v1.2.3