diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-06-21 14:27:54 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-06-21 15:20:19 -0500 |
commit | b03393a55e325a813444cce9cb4e2ec6dc99579e (patch) | |
tree | 4f192f61b9f4a4b832e317b294efeab4bdcf72b4 /roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml | |
parent | f97e06c970688324356ae4ebf3137de0c1097c4f (diff) | |
download | openshift-b03393a55e325a813444cce9cb4e2ec6dc99579e.tar.gz openshift-b03393a55e325a813444cce9cb4e2ec6dc99579e.tar.bz2 openshift-b03393a55e325a813444cce9cb4e2ec6dc99579e.tar.xz openshift-b03393a55e325a813444cce9cb4e2ec6dc99579e.zip |
GlusterFS: Use proper namespace for heketi command and service account
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml')
-rw-r--r-- | roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml b/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml index 26343b909..63009c539 100644 --- a/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml +++ b/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part2.yml @@ -4,7 +4,7 @@ register: setup_storage - name: Copy heketi-storage list - shell: "{{ openshift.common.client_binary }} rsh {{ heketi_pod.results.results[0]['items'][0]['metadata']['name'] }} cat /tmp/heketi-storage.json > {{ mktemp.stdout }}/heketi-storage.json" + shell: "{{ openshift.common.client_binary }} rsh --namespace={{ glusterfs_namespace }} {{ heketi_pod.results.results[0]['items'][0]['metadata']['name'] }} cat /tmp/heketi-storage.json > {{ mktemp.stdout }}/heketi-storage.json" # This is used in the subsequent task - name: Copy the admin client config @@ -125,7 +125,7 @@ - name: Set heketi-cli command set_fact: - glusterfs_heketi_client: "oc rsh {{ heketi_pod.results.results[0]['items'][0]['metadata']['name'] }} heketi-cli -s http://localhost:8080 --user admin --secret '{{ glusterfs_heketi_admin_key }}'" + glusterfs_heketi_client: "{{ openshift.common.client_binary }} rsh --namespace={{ glusterfs_namespace }} {{ heketi_pod.results.results[0]['items'][0]['metadata']['name'] }} heketi-cli -s http://localhost:8080 --user admin --secret '{{ glusterfs_heketi_admin_key }}'" - name: Verify heketi service command: "{{ glusterfs_heketi_client }} cluster list" |