f587ed3729
Several problems exist with Horizon on centos+binary: 1. The default setup of http binds a port to port 80 on RPM based distros. 2. There is no horizon user/group added causing config-external to break badly. 3. openstack-dashboard is installed in /usr/share/openstack-dashboard/openstack_dashboard. This is incompatible with the expectations of the wsgi configuration. 4. the target for config-external is /etc/httpd/sites.d/horizon.conf. It should be /etc/httpd/conf.d/horizon.conf 5. A workaround is required for: https://bugzilla.redhat.com/show_bug.cgi?id=1220070 6. Static display requires compressing the installation via manage.py. To do this correctly pyscss needs to be upgraded because the version in RDO is broken. Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Iabd3044906920f5cc60b9a6b320e62d1d7c9210f Closes-Bug: #1490066
27 lines
631 B
Bash
27 lines
631 B
Bash
#!/bin/bash
|
|
SOURCE="/opt/kolla/horizon/local_settings"
|
|
TARGET="/etc/openstack-dashboard/local_settings"
|
|
OWNER="horizon"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|
|
|
|
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
|
|
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
|
|
SOURCE="/opt/kolla/horizon/horizon.conf"
|
|
TARGET="/etc/apache2/sites-enabled/000-default.conf"
|
|
else
|
|
SOURCE="/opt/kolla/horizon/horizon.conf"
|
|
TARGET="/etc/httpd/conf.d/horizon.conf"
|
|
|
|
fi
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|