diff options
4 files changed, 4 insertions, 3 deletions
| diff --git a/roles/openshift_cfme/defaults/main.yml b/roles/openshift_cfme/defaults/main.yml index 493e1ef68..4070ae7ef 100644 --- a/roles/openshift_cfme/defaults/main.yml +++ b/roles/openshift_cfme/defaults/main.yml @@ -28,6 +28,7 @@ openshift_cfme_pv_data:  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.  # diff --git a/roles/openshift_cfme/templates/miq-pv-db.yaml.j2 b/roles/openshift_cfme/templates/miq-pv-db.yaml.j2 index b8c3bb277..280f3e97a 100644 --- a/roles/openshift_cfme/templates/miq-pv-db.yaml.j2 +++ b/roles/openshift_cfme/templates/miq-pv-db.yaml.j2 @@ -8,6 +8,6 @@ spec:    accessModes:      - ReadWriteOnce    nfs:  -    path: /exports/miq-pv01 +    path: {{ openshift_cfme_nfs_directory }}/miq-pv01      server: {{ openshift_cfme_nfs_server }}    persistentVolumeReclaimPolicy: Retain diff --git a/roles/openshift_cfme/templates/miq-pv-region.yaml.j2 b/roles/openshift_cfme/templates/miq-pv-region.yaml.j2 index 7218773f0..fe80dffa5 100644 --- a/roles/openshift_cfme/templates/miq-pv-region.yaml.j2 +++ b/roles/openshift_cfme/templates/miq-pv-region.yaml.j2 @@ -8,6 +8,6 @@ spec:    accessModes:      - ReadWriteOnce    nfs:  -    path: /exports/miq-pv02 +    path: {{ openshift_cfme_nfs_directory }}/miq-pv02      server: {{ openshift_cfme_nfs_server }}    persistentVolumeReclaimPolicy: Retain diff --git a/roles/openshift_cfme/templates/miq-pv-server.yaml.j2 b/roles/openshift_cfme/templates/miq-pv-server.yaml.j2 index 7b40b6c69..f84b67ea9 100644 --- a/roles/openshift_cfme/templates/miq-pv-server.yaml.j2 +++ b/roles/openshift_cfme/templates/miq-pv-server.yaml.j2 @@ -8,6 +8,6 @@ spec:    accessModes:      - ReadWriteOnce    nfs:  -    path: /exports/miq-pv03 +    path: {{ openshift_cfme_nfs_directory }}/miq-pv03      server: {{ openshift_cfme_nfs_server }}    persistentVolumeReclaimPolicy: Retain | 
