Browse Source

GlusterFS: Skip heketi-cli install on Atomic

Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Jose A. Rivera 7 years ago
parent
commit
73820278c8
1 changed files with 5 additions and 0 deletions
  1. 5 0
      roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

+ 5 - 0
roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

@@ -10,6 +10,11 @@
 
 - name: Make sure heketi-client is installed
   package: name=heketi-client state=present
+  when: not openshift.common.is_atomic | bool
+
+- name: Verify heketi-cli is installed
+  shell: "command -v heketi-cli >/dev/null 2>&1 || { echo >&2 'ERROR: heketi-cli must be installed.'; exit 1; }"
+  changed_when: False
 
 - name: Delete pre-existing heketi resources
   oc_obj: