Big update af the role
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2022-03-03 12:06:46 +01:00
parent 10f4eb6ef0
commit d97acb68b0
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
14 changed files with 156 additions and 246 deletions

View file

@ -10,9 +10,9 @@
context: "{{ my_context }}"
name: longhorn
chart_ref: longhorn/longhorn
chart_version: "{{ storage_longhorn_version }}"
chart_version: "{{ storage_longhorn.version }}"
create_namespace: yes
release_namespace: "{{ storage_longhorn_namespace }}"
release_namespace: "{{ storage_longhorn.namespace }}"
values:
# persistence:
# defaultClass: true
@ -62,19 +62,19 @@
# traefik.ingress.kubernetes.io/router.middlewares: {{ traefik_namespace }}-traefik-dashboard-basicauth@kubernetescrd
# traefik.ingress.kubernetes.io/router.middlewares: basic-auth@file
#{% endif %}
enablePSP: true
# enablePSP: true
- name: Install longhorn UI Ingress
k8s:
kubernetes.core.k8s:
state: present
context: "{{ my_context }}"
apply: true
namespace: "{{ storage_longhorn_namespace }}"
namespace: "{{ storage_longhorn.namespace }}"
resource_definition: "{{ lookup('template', 'longhorn/' + item) | from_yaml }}"
with_items:
- "longhorn_ingressroute.yaml.j2"
when:
- storage_longhorn|bool
- storage_longhorn.enabled
tags:
- longhorn
- storage
@ -85,23 +85,20 @@
kubernetes.core.helm:
context: "{{ my_context }}"
name: longhorn
chart_ref: longhorn/longhorn
# chart_version: 1.2.0
release_state: absent
release_namespace: "{{ storage_longhorn_namespace }}"
create_namespace: true
state: absent
release_namespace: "{{ storage_longhorn.namespace }}"
- name: Remove Ingress for longhorn UI
k8s:
kubernetes.core.k8s:
state: absent
context: "{{ my_context }}"
namespace: "{{ storage_longhorn_namespace }}"
namespace: "{{ storage_longhorn.namespace }}"
resource_definition: "{{ lookup('template', 'longhorn/' + item) | from_yaml }}"
with_items:
- "longhorn_ingressroute.yaml.j2"
# - "longhorn_ingressroute.yaml.j2"
- "longhorn-namespace.yml.j2"
when:
- not storage_longhorn|bool
- not storage_longhorn.enabled
tags:
- longhorn
- storage