|
@@ -282,22 +282,6 @@
|
|
|
when:
|
|
|
- glusterfs_heketi_admin_key is defined
|
|
|
|
|
|
- - name: Get heketi route
|
|
|
- oc_obj:
|
|
|
- namespace: "{{ glusterfs_namespace }}"
|
|
|
- kind: route
|
|
|
- state: list
|
|
|
- name: "heketi-{{ glusterfs_name }}"
|
|
|
- register: heketi_route
|
|
|
- when:
|
|
|
- - glusterfs_heketi_is_native
|
|
|
-
|
|
|
- - name: Determine StorageClass heketi URL
|
|
|
- set_fact:
|
|
|
- glusterfs_heketi_route: "{{ heketi_route.results.results[0]['spec']['host'] }}"
|
|
|
- when:
|
|
|
- - glusterfs_heketi_is_native
|
|
|
-
|
|
|
- name: Generate GlusterFS StorageClass file
|
|
|
template:
|
|
|
src: "glusterfs-storageclass.yml.j2"
|
|
@@ -332,22 +316,6 @@
|
|
|
data: "{{ glusterfs_heketi_admin_key }}"
|
|
|
when: glusterfs_heketi_admin_key is defined
|
|
|
|
|
|
- - name: Get heketi route
|
|
|
- oc_obj:
|
|
|
- namespace: "{{ glusterfs_namespace }}"
|
|
|
- kind: route
|
|
|
- state: list
|
|
|
- name: "heketi-{{ glusterfs_name }}"
|
|
|
- register: heketi_route
|
|
|
- when:
|
|
|
- - glusterfs_heketi_is_native
|
|
|
-
|
|
|
- - name: Determine StorageClass heketi URL
|
|
|
- set_fact:
|
|
|
- glusterfs_heketi_route: "{{ heketi_route.results.results[0]['spec']['host'] }}"
|
|
|
- when:
|
|
|
- - glusterfs_heketi_is_native
|
|
|
-
|
|
|
- name: Generate Gluster Block StorageClass file
|
|
|
template:
|
|
|
src: "gluster-block-storageclass.yml.j2"
|