Skip to content

Commit 7f85bea

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add precheck for Horizon config file renames in Caracal"
2 parents 97e69bc + ca9720e commit 7f85bea

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ansible/roles/horizon/tasks/precheck.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,25 @@
2626
when:
2727
- container_facts['horizon'] is not defined
2828
- inventory_hostname in groups[horizon.group]
29+
30+
# TODO(mgoddard): Remove in the 2025.1 E release.
31+
- name: Check for old local_settings file
32+
assert:
33+
that:
34+
- "'{{ node_custom_config }}/horizon/{{ inventory_hostname }}/local_settings' is not exists"
35+
- "'{{ node_custom_config }}/horizon/local_settings' is not exists"
36+
fail_msg: >-
37+
Horizon configuration must now be provided using
38+
/etc/kolla/config/horizon/_9998-kolla-settings.py rather than
39+
/etc/kolla/config/horizon/local_settings.
40+
41+
# TODO(mgoddard): Remove in the 2025.1 E release.
42+
- name: Check for old custom_local_settings file
43+
assert:
44+
that:
45+
- "'{{ node_custom_config }}/horizon/{{ inventory_hostname }}/custom_local_settings' is not exists"
46+
- "'{{ node_custom_config }}/horizon/custom_local_settings' is not exists"
47+
fail_msg: >-
48+
Custom horizon configuration must now be provided using
49+
/etc/kolla/config/horizon/_9999-custom-settings.py rather than
50+
/etc/kolla/config/horizon/custom_local_settings.

0 commit comments

Comments
 (0)