From 43272acfc3fd7dfa2427bbdd7808ef8bb2f6fa3a Mon Sep 17 00:00:00 2001 From: Michal Arbet <michal.arbet@ultimum.io> Date: Tue, 30 Jan 2024 14:04:50 +0100 Subject: [PATCH] Rename horizon settings filenames The purpose of this patch is to make it easier to review changes, because renaming and changing the file in one patch will generate diff when the entire file will be deleted on the one hand and new file (actually just renamed) will be new on the other hand, which is hard to review. Change-Id: I17a16ce746faa8898a457cadbb6f996f964a5b6f --- ansible/roles/horizon/tasks/config.yml | 16 ++++++++-------- ...al_settings.j2 => _9998-kolla-settings.py.j2} | 0 ...l_settings.j2 => _9999-custom-settings.py.j2} | 0 3 files changed, 8 insertions(+), 8 deletions(-) rename ansible/roles/horizon/templates/{local_settings.j2 => _9998-kolla-settings.py.j2} (100%) rename ansible/roles/horizon/templates/{custom_local_settings.j2 => _9999-custom-settings.py.j2} (100%) diff --git a/ansible/roles/horizon/tasks/config.yml b/ansible/roles/horizon/tasks/config.yml index 9efe1c779d..e294895cc7 100644 --- a/ansible/roles/horizon/tasks/config.yml +++ b/ansible/roles/horizon/tasks/config.yml @@ -83,12 +83,12 @@ horizon: "{{ horizon_services['horizon'] }}" template: src: "{{ item }}" - dest: "{{ node_config_directory }}/horizon/local_settings" + dest: "{{ node_config_directory }}/horizon/_9998-kolla-settings.py" mode: "0660" with_first_found: - - "{{ node_custom_config }}/horizon/{{ inventory_hostname }}/local_settings" - - "{{ node_custom_config }}/horizon/local_settings" - - "local_settings.j2" + - "{{ node_custom_config }}/horizon/{{ inventory_hostname }}/_9998-kolla-settings.py" + - "{{ node_custom_config }}/horizon/_9998-kolla-settings.py" + - "_9998-kolla-settings.py.j2" when: - horizon.enabled | bool - inventory_hostname in groups[horizon.group] @@ -101,12 +101,12 @@ horizon: "{{ horizon_services['horizon'] }}" template: src: "{{ item }}" - dest: "{{ node_config_directory }}/horizon/custom_local_settings" + dest: "{{ node_config_directory }}/horizon/_9999-custom-settings.py" mode: "0660" with_first_found: - - "{{ node_custom_config }}/horizon/{{ inventory_hostname }}/custom_local_settings" - - "{{ node_custom_config }}/horizon/custom_local_settings" - - "custom_local_settings.j2" + - "{{ node_custom_config }}/horizon/{{ inventory_hostname }}/_9999-custom-settings.py" + - "{{ node_custom_config }}/horizon/_9999-custom-settings.py" + - "_9999-custom-settings.py.j2" when: - horizon.enabled | bool - inventory_hostname in groups[horizon.group] diff --git a/ansible/roles/horizon/templates/local_settings.j2 b/ansible/roles/horizon/templates/_9998-kolla-settings.py.j2 similarity index 100% rename from ansible/roles/horizon/templates/local_settings.j2 rename to ansible/roles/horizon/templates/_9998-kolla-settings.py.j2 diff --git a/ansible/roles/horizon/templates/custom_local_settings.j2 b/ansible/roles/horizon/templates/_9999-custom-settings.py.j2 similarity index 100% rename from ansible/roles/horizon/templates/custom_local_settings.j2 rename to ansible/roles/horizon/templates/_9999-custom-settings.py.j2 -- GitLab