Browse Source

Merge pull request #2280 from ganhuang/bz#1356823

docker-registry's middleware stanza should contain 'registry' and 'storage' by default
Scott Dodson 8 years ago
parent
commit
1655e306fb
1 changed files with 7 additions and 0 deletions
  1. 7 0
      roles/openshift_hosted/templates/registry_config.j2

+ 7 - 0
roles/openshift_hosted/templates/registry_config.j2

@@ -58,6 +58,10 @@ auth:
   openshift:
     realm: openshift
 middleware:
+{% if openshift.common.version_gte_3_3_or_1_3 | bool %}
+  registry:
+  - name: openshift
+{% endif -%}
   repository:
   - name: openshift
     options:
@@ -69,4 +73,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 }}
+{% elif openshift.common.version_gte_3_3_or_1_3 | bool %}
+  storage:
+  - name: openshift
 {% endif -%}