feat(vault): adjust variable merging behaviour for allowing multiple tcp and unix socket listeners
All checks were successful
development / Check commit compliance (push) Successful in 8s

This commit is contained in:
Bertrand Lanson 2024-07-21 23:59:58 +02:00
parent f73b7bb63e
commit ca65a44eac
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw

View File

@ -6,20 +6,24 @@
vars: vars:
_config_to_merge: "{{ vault_tls_listener_configuration }}" _config_to_merge: "{{ vault_tls_listener_configuration }}"
ansible.builtin.set_fact: ansible.builtin.set_fact:
vault_listener_configuration: "{{ vault_listener_configuration: >-
{{
vault_listener_configuration | vault_listener_configuration |
combine(_config_to_merge, recursive=true) zip(vault_tls_listener_configuration) |
}}" map('combine', list_merge='append', recursive=true) |
list
}}
when: vault_enable_tls when: vault_enable_tls
- name: "Vault | Merge extra listener configuration" - name: "Vault | Merge extra listener configuration"
vars: vars:
_config_to_merge: "{{ vault_extra_listener_configuration }}" _config_to_merge: "{{ vault_extra_listener_configuration }}"
ansible.builtin.set_fact: ansible.builtin.set_fact:
vault_listener_configuration: "{{ vault_listener_configuration: >-
vault_listener_configuration | {{
combine(_config_to_merge, recursive=true) vault_listener_configuration +
}}" vault_extra_listener_configuration
}}
- name: "Vault | Add certificates directory to extra_files_dir" - name: "Vault | Add certificates directory to extra_files_dir"
ansible.builtin.set_fact: ansible.builtin.set_fact: