summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-02-27 16:02:11 -0500
committerRussell Teague <rteague@redhat.com>2017-02-27 16:21:30 -0500
commit0319ee8c64dababa1f8606612d140cb5805e4f45 (patch)
tree9ffd75494bf646c60c12c05e6727b6df111d11e9
parent833eb4ccfed255004ba21b51bab3c022201bbc83 (diff)
downloadopenshift-0319ee8c64dababa1f8606612d140cb5805e4f45.tar.gz
openshift-0319ee8c64dababa1f8606612d140cb5805e4f45.tar.bz2
openshift-0319ee8c64dababa1f8606612d140cb5805e4f45.tar.xz
openshift-0319ee8c64dababa1f8606612d140cb5805e4f45.zip
Correct fact creation for pvc
-rw-r--r--roles/openshift_hosted/tasks/registry/registry.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_hosted/tasks/registry/registry.yml b/roles/openshift_hosted/tasks/registry/registry.yml
index cad5c666c..62d625da0 100644
--- a/roles/openshift_hosted/tasks/registry/registry.yml
+++ b/roles/openshift_hosted/tasks/registry/registry.yml
@@ -64,13 +64,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']