feat(k3s): add deployment rules for Helm and OpenTofu projects

This commit is contained in:
NaeiKinDus 2024-06-09 00:00:00 +00:00
parent b317cabe65
commit e33c3718bf
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
7 changed files with 112 additions and 8 deletions

View file

@ -42,3 +42,16 @@
debug: msg="Not supported yet"
when: k3s_cluster_type is match("ha")
failed_when: true
- name: install Helm charts
connection: local
kubernetes.core.helm: '{{ item }}'
loop: '{{ k3s_cluster_additional_helm_charts }}'
loop_control:
label: '{{ item.release_name }}'
- name: install OpenTofu resources
include_tasks: opentofu.yml
loop: '{{ k3s_cluster_additional_tf_resources }}'
loop_control:
label: '{{ item.name }}'