c12s-kubespray/contrib/network-storage/heketi/roles/provision/tasks/setup/heketi.yml
2018-07-25 16:42:30 +02:00

11 lines
450 B
YAML

---
- name: "Create long term Heketi instance."
command: "kubectl create -f {{ kube_config_dir }}/heketi-deployment.json"
- name: "Get heketi deployment state."
register: "heketi_deployment_state"
command: "kubectl get deployment heketi -o=name --ignore-not-found=true"
changed_when: false
- name: "Ensure heketi is up and running."
assert: { that: "heketi_deployment_state.stdout != \"\"", message: "Heketi deployment did not succeed." }