Skip to content

Commit

Permalink
Merge pull request #5102 from ilackarms/fix-pv-template
Browse files Browse the repository at this point in the history
only evaluate openshift_cfme_nfs_server if using nfs
  • Loading branch information
sdodson authored Sep 6, 2017
2 parents 89c5814 + 87996bb commit 5aaa24b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions roles/openshift_cfme/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ openshift_cfme_pv_data:

# Tuning parameter to use more than 5 images at once from an ImageStream
openshift_cfme_maxImagesBulkImportedPerRepository: 100
# Hostname/IP of the NFS server. Currently defaults to first master
openshift_cfme_nfs_server: "{{ groups.nfs.0 }}"
openshift_cfme_nfs_directory: "/exports"
# TODO: Refactor '_install_app' variable. This is just for testing but
# maybe in the future it should control the entire yes/no for CFME.
#
Expand Down
7 changes: 7 additions & 0 deletions roles/openshift_cfme/tasks/nfs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
---
# Tasks to statically provision NFS volumes
# Include if not using dynamic volume provisioning

- name: Set openshift_cfme_nfs_server fact
when: openshift_cfme_nfs_server is not defined
set_fact:
# Hostname/IP of the NFS server. Currently defaults to first master
openshift_cfme_nfs_server: "{{ oo_nfs_to_config.0 }}"

- name: Ensure the /exports/ directory exists
file:
path: /exports/
Expand Down

0 comments on commit 5aaa24b

Please sign in to comment.