early storage operator work
This commit is contained in:
parent
73982fd7b7
commit
4d4977b164
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
ansible/vault_password
|
||||
ansible/inventory/host_vars/*/vault.yaml
|
||||
ansible/roles/k8s_network/files/calico
|
||||
ansible/roles/k8s_storage/files/rook
|
||||
.vscode
|
||||
*/vault.yaml
|
@ -19,3 +19,10 @@
|
||||
become: false
|
||||
roles:
|
||||
- k8s_taint
|
||||
|
||||
- name: configure storage operator
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
become: false
|
||||
roles:
|
||||
- k8s_storage
|
2
ansible/roles/k8s_storage/defaults/main.yaml
Normal file
2
ansible/roles/k8s_storage/defaults/main.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
rook_version: "v1.10.4"
|
17
ansible/roles/k8s_storage/tasks/main.yaml
Normal file
17
ansible/roles/k8s_storage/tasks/main.yaml
Normal 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
|
@ -4,4 +4,4 @@
|
||||
gather_facts: true
|
||||
become: false
|
||||
roles:
|
||||
- k8s_taint
|
||||
- k8s_storage
|
Loading…
Reference in New Issue
Block a user