Skip to content

Commit

Permalink
Merge "Add precheck for Horizon config file renames in Caracal"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 3, 2024
2 parents 97e69bc + ca9720e commit 7f85bea
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ansible/roles/horizon/tasks/precheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,25 @@
when:
- container_facts['horizon'] is not defined
- inventory_hostname in groups[horizon.group]

# TODO(mgoddard): Remove in the 2025.1 E release.
- name: Check for old local_settings file
assert:
that:
- "'{{ node_custom_config }}/horizon/{{ inventory_hostname }}/local_settings' is not exists"
- "'{{ node_custom_config }}/horizon/local_settings' is not exists"
fail_msg: >-
Horizon configuration must now be provided using
/etc/kolla/config/horizon/_9998-kolla-settings.py rather than
/etc/kolla/config/horizon/local_settings.
# TODO(mgoddard): Remove in the 2025.1 E release.
- name: Check for old custom_local_settings file
assert:
that:
- "'{{ node_custom_config }}/horizon/{{ inventory_hostname }}/custom_local_settings' is not exists"
- "'{{ node_custom_config }}/horizon/custom_local_settings' is not exists"
fail_msg: >-
Custom horizon configuration must now be provided using
/etc/kolla/config/horizon/_9999-custom-settings.py rather than
/etc/kolla/config/horizon/custom_local_settings.

0 comments on commit 7f85bea

Please sign in to comment.