summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-08-24 14:33:48 -0400
committerScott Dodson <sdodson@redhat.com>2016-08-24 16:02:49 -0400
commit3f2d71a1bfb589778733dd8eb0ccd6b1dac31d79 (patch)
tree89a268dc44aec2f09cd9e7ce7dd30af630010aa3
parent6765f1f398c1a3b8d72e1a07085c953f5a1ad810 (diff)
downloadopenshift-3f2d71a1bfb589778733dd8eb0ccd6b1dac31d79.tar.gz
openshift-3f2d71a1bfb589778733dd8eb0ccd6b1dac31d79.tar.bz2
openshift-3f2d71a1bfb589778733dd8eb0ccd6b1dac31d79.tar.xz
openshift-3f2d71a1bfb589778733dd8eb0ccd6b1dac31d79.zip
Refactor volume directory creation
-rw-r--r--roles/openshift_storage_nfs/tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_storage_nfs/tasks/main.yml b/roles/openshift_storage_nfs/tasks/main.yml
index 2928fbb1e..08d0b8540 100644
--- a/roles/openshift_storage_nfs/tasks/main.yml
+++ b/roles/openshift_storage_nfs/tasks/main.yml
@@ -20,13 +20,14 @@
- name: Ensure export directories exist
file:
- path: "{{ openshift.hosted.registry.storage.nfs.directory }}/{{ item }}"
+ path: "{{ item.storage.nfs.directory }}/{{ item.storage.volume.name }}"
state: directory
mode: 0777
owner: nfsnobody
group: nfsnobody
with_items:
- - "{{ openshift.hosted.registry.storage.volume.name }}"
+ - "{{ openshift.hosted.registry }}"
+ - "{{ openshift.hosted.metrics }}"
- name: Configure exports
template: