This commit is contained in:
parent
249c4dbc7b
commit
6d9b2c182d
3 changed files with 8 additions and 27 deletions
|
|
@ -4,3 +4,4 @@ cert_manager_namespace: "cert-manager"
|
||||||
|
|
||||||
certmanager_csi: true
|
certmanager_csi: true
|
||||||
certmanager_version: "1.6.1"
|
certmanager_version: "1.6.1"
|
||||||
|
certmanager_csi_version: "0.2.0"
|
||||||
|
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
- name: CSI Cert Manager Setup
|
|
||||||
block:
|
|
||||||
- name: Define state to present
|
|
||||||
set_fact:
|
|
||||||
certmanager_csi_state: "present"
|
|
||||||
when:
|
|
||||||
- certmanager_csi|bool
|
|
||||||
|
|
||||||
- name: Define state to absent
|
|
||||||
set_fact:
|
|
||||||
certmanager_csi_state: "absent"
|
|
||||||
when:
|
|
||||||
- not certmanager_csi|bool
|
|
||||||
|
|
||||||
- name: CSI Cert Manager files need to be {{ certmanager_csi_state }}
|
|
||||||
k8s:
|
|
||||||
state: "{{ certmanager_csi_state }}"
|
|
||||||
context: "{{ my_context }}"
|
|
||||||
apply: true
|
|
||||||
definition: "{{ item }}"
|
|
||||||
with_items:
|
|
||||||
- "{{ lookup('url', certmanager_csi_driver_url, split_lines=False) | from_yaml_all | list }}"
|
|
||||||
tags:
|
|
||||||
- cert-manager
|
|
||||||
- storage
|
|
||||||
|
|
@ -130,7 +130,13 @@
|
||||||
|
|
||||||
|
|
||||||
- name: install / uninstall Cert-Manager CSI Kubernetes drivers
|
- name: install / uninstall Cert-Manager CSI Kubernetes drivers
|
||||||
include_tasks: "csi.yml"
|
kubernetes.core.helm:
|
||||||
|
context: "{{ my_context }}"
|
||||||
|
name: cert-manager-csi-driver
|
||||||
|
chart_ref: jetstack/cert-manager-csi-driver
|
||||||
|
chart_version: "{{ certmanager_csi_version }}"
|
||||||
|
create_namespace: yes
|
||||||
|
release_namespace: "cert-manager"
|
||||||
when:
|
when:
|
||||||
- certmanager_csi|bool
|
- certmanager_csi|bool
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue