add heketi/glusterfs as additional contributional network storage

This commit is contained in:
Sascha Marcel Schmidt
2018-06-25 13:23:20 +02:00
parent 73a2a18006
commit 9d2fabc9b9
23 changed files with 896 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
---
- register: "label_present"
command: "kubectl get node --selector=storagenode=glusterfs,kubernetes.io/hostname={{ node }} --ignore-not-found=true"
changed_when: false
- name: "Assign storage label"
when: "label_present.stdout_lines|length == 0"
command: "kubectl label node {{ node }} storagenode=glusterfs"
- register: "label_present"
command: "kubectl get node --selector=storagenode=glusterfs,kubernetes.io/hostname={{ node }} --ignore-not-found=true"
changed_when: false
- assert: { that: "label_present|length > 0", msg: "Node {{ node }} has not been assigned with label storagenode=glusterfs." }