32a9e2b808
Fixes broken panel registration for source install method due to python 3 changes changing the horizon_lib_dir path dynamically. This sets changes the horizon_dashboard_panel_dir var to utilize the horizon_lib_dir fact being set in in the horizon_install_source.yml playbook. Closes-Bug: 1848561 Depends-On: https://review.opendev.org/689323 Change-Id: Ide5181c14fdc2c67df4df3adaa155d5959b4c468
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
---
|
|
# Copyright 2018, SUSE LINUX GmbH.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
horizon_package_list: "{{ horizon_distro_packages }}"
|
|
_horizon_bin: "/openstack/venvs/horizon-{{ horizon_venv_tag }}/bin"
|
|
|
|
#NOTE(jrosser) for compatibility with py2 and py3 we detect the location of
|
|
#this dir during the source install and set a fact(horizon_lib_dir)
|
|
#_horizon_lib_dir: "{{ _horizon_bin | dirname }}/lib/python2.7/dist-packages"
|
|
horizon_dashboard_panel_dir: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled"
|
|
|
|
horizon_manage: "{{ _horizon_bin }}/horizon-manage.py"
|
|
_dashboard_panels_location:
|
|
- "/enabled"
|
|
- "/conf"
|
|
- "/local_settings.d"
|
|
- "/local/enabled"
|
|
- "/local/local_settings.d"
|