Add CSI secrets-store with vault provider
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5803f5f006
commit
158419cfbb
12 changed files with 357 additions and 0 deletions
21
tasks/secrets-store.yml
Normal file
21
tasks/secrets-store.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- name: Defined secrets-storage state to present
|
||||
set_fact:
|
||||
storage_secrets_store_state: present
|
||||
when:
|
||||
- storage_secrets_store|bool
|
||||
|
||||
- name: find state of secrets-storage
|
||||
set_fact:
|
||||
storage_secrets_store_state: absent
|
||||
when:
|
||||
- not storage_secrets_store|bool
|
||||
|
||||
- name: secrets-storage need to be {{ storage_secrets_store_state }}
|
||||
k8s:
|
||||
state: "{{ storage_secrets_store_state }}"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- '{{ secrets_store_files }}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue