diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-08-02 13:22:27 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-08-02 13:22:36 -0500 |
commit | 5d78e74dae92199c2e07627f91ae2a0c780f6437 (patch) | |
tree | 390db3fd5bc418495e33d0fc8abc7715508aaede /roles | |
parent | f6e0126c3cda6622fc2371b3b603108b94ed9d39 (diff) | |
download | openshift-5d78e74dae92199c2e07627f91ae2a0c780f6437.tar.gz openshift-5d78e74dae92199c2e07627f91ae2a0c780f6437.tar.bz2 openshift-5d78e74dae92199c2e07627f91ae2a0c780f6437.tar.xz openshift-5d78e74dae92199c2e07627f91ae2a0c780f6437.zip |
GlusterFS: Copy SSH private key to master node.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1477718
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml b/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml index 19eb3cdf7..3c8621bbf 100644 --- a/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml +++ b/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml @@ -163,6 +163,11 @@ - glusterfs_heketi_is_native - glusterfs_heketi_user_key is undefined +- name: Copy heketi private key + copy: + src: "{{ glusterfs_heketi_ssh_keyfile }}" + dest: "{{ mktemp.stdout }}/private_key" + - name: Create heketi config secret oc_secret: namespace: "{{ glusterfs_namespace }}" @@ -173,7 +178,7 @@ - name: heketi.json path: "{{ mktemp.stdout }}/heketi.json" - name: private_key - path: "{{ glusterfs_heketi_ssh_keyfile }}" + path: "{{ mktemp.stdout }}/private_key" when: - glusterfs_heketi_is_native |