openstack-ansible-os_horizon/vars/source_install.yml
Shannon Mitchell 32a9e2b808 Broken panel registration fix
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
2019-10-18 07:50:43 +00:00

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"