Browse Source

Merge pull request #3515 from mtnbikenc/registry-pvc-fix

BZ1427009: Correct fact creation for pvc
Russell Teague 8 years ago
parent
commit
c4a6dadaba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      roles/openshift_hosted/tasks/registry/registry.yml

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

@@ -77,13 +77,14 @@
   when:
   - openshift.hosted.registry.storage.kind | default(none) == 'object'
 
-- name: Set facts for persistent volume
+- name: Update openshift_hosted facts for persistent volumes
   set_fact:
+    openshift_hosted_registry_volumes: "{{ openshift_hosted_registry_volumes | union(pvc_volume_mounts) }}"
+  vars:
     pvc_volume_mounts:
     - name: registry-storage
       type: persistentVolumeClaim
       claim_name: "{{ openshift.hosted.registry.storage.volume.name }}-claim"
-    openshift_hosted_registry_volumes: "{{ openshift_hosted_registry_volumes | union(pvc_volume_mounts) }}"
   when:
   - openshift.hosted.registry.storage.kind | default(none) in ['nfs', 'openstack']