Browse Source

Make s3_volume_mount available to set_fact call

7cf5cc14 cleaned up how the registry was being created. However the s3
cloudfront calls ended up setting and using a fact in the same block.
This change makes s3_volume_mount available to the set_fact.
Steve Milner 8 năm trước cách đây
mục cha
commit
7459157413
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      roles/openshift_hosted/tasks/registry/storage/s3.yml

+ 3 - 2
roles/openshift_hosted/tasks/registry/storage/s3.yml

@@ -36,13 +36,14 @@
       - path: cloudfront.pem
         data: "{{ lookup('file', openshift_hosted_registry_storage_s3_cloudfront_privatekeyfile) }}"
 
-  - name: Add cloudfront secret to the registry volumes
+  - name: Append cloudfront secret registry volume to openshift_hosted_registry_volumes
     set_fact:
+      openshift_hosted_registry_volumes: "{{ openshift_hosted_registry_volumes | union(s3_volume_mount) }}"
+    vars:
       s3_volume_mount:
       - name: cloudfront-vol
         path: /etc/origin
         type: secret
         secret_name: docker-registry-s3-cloudfront
-      openshift_hosted_registry_volumes: "{{ openshift_hosted_registry_volumes | union(s3_volume_mount) }}"
 
   when: openshift_hosted_registry_storage_s3_cloudfront_baseurl | default(none) is not none