Enable recursion in combine() filter
Ansible's combine() filter needs recursive=True parameter in order to recursively merge nested hashes. https: //docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#combining-hashes-dictionaries Change-Id: Ie081e4e9bdf84e0f3c1f0116fcd6c76e47573895
This commit is contained in:
parent
6b1c3f831a
commit
996dce8a8c
@ -257,7 +257,7 @@ zun_services:
|
||||
group: zun_compute
|
||||
service_name: kuryr-libnetwork
|
||||
condition: "{{ inventory_hostname in groups['zun_compute'] }}"
|
||||
init_config_overrides: "{{ zun_kuryr_init_defaults | combine(zun_kuryr_init_overrides) }}"
|
||||
init_config_overrides: "{{ zun_kuryr_init_defaults | combine(zun_kuryr_init_overrides, recursive=True) }}"
|
||||
start_order: 3
|
||||
wsgi_app: True
|
||||
wsgi: kuryr_libnetwork.server:app
|
||||
@ -308,7 +308,7 @@ zun_services:
|
||||
init_config_overrides: {}
|
||||
start_order: 4
|
||||
systemd_overrides_only: True
|
||||
systemd_overrides: "{{ zun_docker_init_defaults | combine(zun_docker_init_overrides) }}"
|
||||
systemd_overrides: "{{ zun_docker_init_defaults | combine(zun_docker_init_overrides, recursive=True) }}"
|
||||
|
||||
# Common pip packages
|
||||
zun_pip_packages:
|
||||
|
@ -25,7 +25,7 @@ filtered_zun_services: |-
|
||||
('condition' in value and value['condition']))
|
||||
and not ('wsgi_app' in value and value['wsgi_app']) %}
|
||||
{% set _ = value.update({'enabled': 'yes', 'state': 'started'}) %}
|
||||
{% set _ = value.update({'config_overrides': (zun_service_defaults | combine(value.init_config_overrides))}) %}
|
||||
{% set _ = value.update({'config_overrides': (zun_service_defaults | combine(value.init_config_overrides, recursive=True))}) %}
|
||||
{% set _ = value.pop('init_config_overrides') %}
|
||||
{% set _ = services.append(value) %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user