Compare commits

...

2 Commits

Author SHA1 Message Date
20f28f7d8a chore: Correctly inject chart values
All checks were successful
Container & Helm chart / Linting (push) Successful in 5s
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 51s
Container & Helm chart / Kubernetes Bootstrap Appliance (push) Successful in 35m41s
2024-06-11 12:00:45 +10:00
2802b49d02 chore: Fix incorrect task module 2024-06-11 12:00:08 +10:00
2 changed files with 8 additions and 6 deletions

View File

@ -1,10 +1,12 @@
- block:
- name: Inject password into values file
ansible.builtin.copy:
dest: "{{ stepconfig.path }}"
content: "{{ lookup('ansible.builtin.file', stepconfig.path) | regex_replace('(ca_password|provisioner_password):[ ]?\n', '\\1: ' ~ (vapp['metacluster.password'] | b64encode) ~ '\n') }}"
no_log: true
- name: Import generated values file into dictionary and combine with custom values
ansible.builtin.set_fact:
values_initial: |
{{
lookup('ansible.builtin.file', stepconfig.path) | from_yaml |
combine( components['step-certificates'].chart_values | from_yaml, recursive=True, list_merge='append')
}}
- name: Install step-ca chart
kubernetes.core.helm:

View File

@ -37,7 +37,7 @@
state: directory
- name: Configure Ansible defaults
ansible.builtin.template:
ansible.builtin.copy:
dest: /etc/ansible/ansible.cfg
content: |
[defaults]