summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml
diff options
context:
space:
mode:
authorTim Tindell <ttindell@isenpai.com>2017-09-13 14:49:57 -0400
committerRobert Tindell <tim.tindell@gmail.com>2017-09-18 13:50:16 -0400
commit62977f65b6aefb17a9a0ffd7e468cbe806251e71 (patch)
tree40ed8adf693f8db5f0063d3c661483a2ac254976 /roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml
parentf8393b7aef78c92437fe78092821a8d0a11c22cc (diff)
downloadopenshift-62977f65b6aefb17a9a0ffd7e468cbe806251e71.tar.gz
openshift-62977f65b6aefb17a9a0ffd7e468cbe806251e71.tar.bz2
openshift-62977f65b6aefb17a9a0ffd7e468cbe806251e71.tar.xz
openshift-62977f65b6aefb17a9a0ffd7e468cbe806251e71.zip
GlusterFS can now be run more than once. Ability to add devices to nodes
Diffstat (limited to 'roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml')
-rw-r--r--roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml27
1 files changed, 3 insertions, 24 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml b/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml
index 3ba1eb2d2..73396c9af 100644
--- a/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml
+++ b/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml
@@ -6,16 +6,6 @@
with_items:
- "deploy-heketi-template.yml"
-- name: Create heketi topology secret
- oc_secret:
- namespace: "{{ glusterfs_namespace }}"
- state: present
- name: "heketi-{{ glusterfs_name }}-topology-secret"
- force: True
- files:
- - name: topology.json
- path: "{{ mktemp.stdout }}/topology.json"
-
- name: Create deploy-heketi template
oc_obj:
namespace: "{{ glusterfs_namespace }}"
@@ -39,18 +29,7 @@
HEKETI_EXECUTOR: "{{ glusterfs_heketi_executor }}"
HEKETI_KUBE_NAMESPACE: "{{ glusterfs_namespace }}"
CLUSTER_NAME: "{{ glusterfs_name }}"
- TOPOLOGY_PATH: "{{ mktemp.stdout }}"
-- name: Wait for deploy-heketi pod
- oc_obj:
- namespace: "{{ glusterfs_namespace }}"
- kind: pod
- state: list
- selector: "glusterfs=deploy-heketi-{{ glusterfs_name }}-pod"
- register: heketi_pod
- until:
- - "heketi_pod.results.results[0]['items'] | count > 0"
- # Pod's 'Ready' status must be True
- - "heketi_pod.results.results[0]['items'] | oo_collect(attribute='status.conditions') | oo_collect(attribute='status', filters={'type': 'Ready'}) | map('bool') | select | list | count == 1"
- delay: 10
- retries: "{{ (glusterfs_timeout | int / 10) | int }}"
+- name: Set heketi Deployed fact
+ set_fact:
+ glusterfs_heketi_deploy_is_missing: False