Reduce maintenance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-03-25 00:13:33 +01:00
parent 2451ae0d2f
commit 427d3af40f
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
12 changed files with 10 additions and 147 deletions

View file

@ -1,9 +1,6 @@
---
- name: CSI Cert Manager Setup
block:
- name: Include vars for CSI
include_vars: "files_list_csi.yml"
- name: Define state to present
set_fact:
certmanager_csi_state: "present"
@ -20,10 +17,10 @@
k8s:
state: "{{ certmanager_csi_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
apply: true
definition: "{{ item }}"
with_items:
- '{{ certmanager_csi_list }}'
- "{{ lookup('url', certmanager_csi_driver_url, split_lines=False) | from_yaml_all | list }}"
tags:
- cert-manager
- storage

View file

@ -33,6 +33,8 @@
with_items:
- "{{ cert_manager_issuer }}"
# Tempo ici
- name: Defined ClusterIssuers
k8s:
state: present
@ -65,8 +67,8 @@
chart_ref: tmp/cert-manager-webhook-ovh/deploy/cert-manager-webhook-ovh
release_namespace: "{{ cert_manager_namespace }}"
values:
# groupName: '{{ cert_manager_issuer | selectattr('provider', 'match', 'ovh') | first }}'
groupName: '{{ cert_manager_issuer | json_query(\"[?provider=='ovh']\") | first }}'
# groupName: '{{ cert_manager_issuer | selectattr("provider", "match", "ovh") | first }}'
groupName: '{{ cert_manager_issuer | json_query(\"[?provider=="ovh"]\") | first }}'
# with_items:
# - "{{ cert_manager_issuer | selectattr('ovh', 'in', provider) }}"
# when: