1
0

early storage operator work

This commit is contained in:
michael 2022-11-02 14:48:24 +13:00
parent 73982fd7b7
commit 4d4977b164
5 changed files with 28 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
ansible/vault_password ansible/vault_password
ansible/inventory/host_vars/*/vault.yaml ansible/inventory/host_vars/*/vault.yaml
ansible/roles/k8s_network/files/calico ansible/roles/k8s_network/files/calico
ansible/roles/k8s_storage/files/rook
.vscode .vscode
*/vault.yaml */vault.yaml

View File

@ -19,3 +19,10 @@
become: false become: false
roles: roles:
- k8s_taint - k8s_taint
- name: configure storage operator
hosts: localhost
gather_facts: false
become: false
roles:
- k8s_storage

View File

@ -0,0 +1,2 @@
---
rook_version: "v1.10.4"

View File

@ -0,0 +1,17 @@
---
- name: create target directory for rook files
ansible.builtin.file:
path: "{{ ansible_search_path[0] }}/files/rook"
state: directory
mode: 0775
- name: download the rook manifests
ansible.builtin.uri:
url: https://raw.githubusercontent.com/rook/rook/{{ rook_version }}/deploy/examples/{{ item }}.yaml
dest: "{{ ansible_search_path[0] }}/files/rook/rook_{{ item }}_{{ rook_version }}.yaml"
creates: "{{ ansible_search_path[0] }}/files/rook/rook_{{ item }}_{{ rook_version }}.yaml"
mode: 0664
with_items:
- operator
- crds
- common

View File

@ -4,4 +4,4 @@
gather_facts: true gather_facts: true
become: false become: false
roles: roles:
- k8s_taint - k8s_storage