Browse Source

docker-registry's middleware stanza should contain 'registry' and 'storage' by default

Gan Huang 8 years ago
parent
commit
084e3ea9ee
1 changed files with 5 additions and 0 deletions
  1. 5 0
      roles/openshift_hosted/templates/registry_config.j2

+ 5 - 0
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 -%}