open ebs zfs

This commit is contained in:
2023-01-11 10:59:26 +10:00
parent 14a126afa0
commit 657ae3fa91
19 changed files with 2531 additions and 47 deletions

View File

@ -0,0 +1,23 @@
---
- name: download zfs operator manifest
ansible.builtin.uri:
url: https://openebs.github.io/charts/zfs-operator.yaml
dest: "{{ ansible_search_path[0] }}/files/zfs-operator.yaml"
creates: "{{ ansible_search_path[0] }}/files/zfs-operator.yaml"
- name: install zfs operator to cluster
kubernetes.core.k8s:
src: "{{ ansible_search_path[0] }}/files/zfs-operator.yaml"
state: present
- name: template out the storage classes
ansible.builtin.template:
src: sc-zfs.yaml.j2
dest: "{{ ansible_search_path[0] }}/files/sc_{{ item.name }}.yaml"
loop: "{{ ebs_zfs_storage_classes }}"
- name: install zfs storage classes to cluster
kubernetes.core.k8s:
src: "{{ ansible_search_path[0] }}/files/sc_{{ item.name }}.yaml"
state: present
loop: "{{ ebs_zfs_storage_classes }}"