Merge "Support for untemplated dirs in kolla config"

This commit is contained in:
Zuul 2022-01-28 13:01:33 +00:00 committed by Gerrit Code Review
commit d6e8365867
3 changed files with 9 additions and 1 deletions

View File

@ -115,6 +115,7 @@
- item.0.item.enabled | bool - item.0.item.enabled | bool
- item.1.path | basename not in item.0.item.ignore | default([]) - item.1.path | basename not in item.0.item.ignore | default([])
- item.1.path | basename not in item.0.item.untemplated | default([]) - item.1.path | basename not in item.0.item.untemplated | default([])
- (item.1.path | dirname | relpath(item.0.item.src)).split("/")[0] not in item.0.item.untemplated_dirs | default([])
- name: Ensure untemplated extra configuration files exist - name: Ensure untemplated extra configuration files exist
copy: copy:
@ -128,7 +129,8 @@
when: when:
- item.0.item.enabled | bool - item.0.item.enabled | bool
- item.1.path | basename not in item.0.item.ignore | default([]) - item.1.path | basename not in item.0.item.ignore | default([])
- item.1.path | basename in item.0.item.untemplated | default([]) - (item.1.path | basename in item.0.item.untemplated | default([])) or
((item.1.path | dirname | relpath(item.0.item.src)).split("/")[0] in item.0.item.untemplated_dirs | default([]))
- name: Ensure unnecessary extra configuration files are absent - name: Ensure unnecessary extra configuration files are absent
file: file:

View File

@ -98,6 +98,9 @@ kolla_openstack_custom_config:
dest: "{{ kolla_node_custom_config_path }}/horizon" dest: "{{ kolla_node_custom_config_path }}/horizon"
patterns: "*" patterns: "*"
enabled: "{{ kolla_enable_horizon }}" enabled: "{{ kolla_enable_horizon }}"
untemplated_dirs:
# Do not attempt to template themes directory.
- "themes"
# InfluxDB. # InfluxDB.
- src: "{{ kolla_extra_config_path }}/" - src: "{{ kolla_extra_config_path }}/"
dest: "{{ kolla_node_custom_config_path }}/" dest: "{{ kolla_node_custom_config_path }}/"

View File

@ -0,0 +1,3 @@
---
features:
- Adds support for custom Horizon themes.