2 Commits

Author SHA1 Message Date
455a2e14be fix: Avoid regex_replace pattern duplication
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-28 13:23:59 +02:00
f5154f6961 fix: Incorrect nesting of dictionary and filters 2023-07-28 13:22:23 +02:00
2 changed files with 6 additions and 5 deletions

View File

@ -3,7 +3,7 @@
- name: Inject password into values file - name: Inject password into values file
ansible.builtin.copy: ansible.builtin.copy:
dest: "{{ stepconfig.path }}" dest: "{{ stepconfig.path }}"
content: "{{ lookup('ansible.builtin.file', stepconfig.path) | regex_replace('(ca_password|provisioner_password): ', '\\1: ' ~ (vapp['metacluster.password'] | b64encode)) }}" content: "{{ lookup('ansible.builtin.file', stepconfig.path) | regex_replace('(ca_password|provisioner_password):[ ]?\n', '\\1: ' ~ (vapp['metacluster.password'] | b64encode) ~ '\n') }}"
no_log: true no_log: true
- name: Install step-ca chart - name: Install step-ca chart

View File

@ -31,10 +31,11 @@
values: | values: |
{{ {{
components['json-server'].chart_values | components['json-server'].chart_values |
combine( { 'jsonServer': { 'seedData': { 'configInline': ( combine(
{ 'appliance': { "version": appliance.version }, 'components': manifest_versions, 'healthz': { 'status': 'running' } } ) | { 'jsonServer': { 'seedData': { 'configInline': (
to_json { 'appliance': { "version": appliance.version }, 'components': manifest_versions, 'healthz': { 'status': 'running' } }
) } } } ) ) | to_json } } }
)
}} }}
- name: Ensure json-server API availability - name: Ensure json-server API availability