Fill ALLOWED_HOSTS using murano devstack plugin

Change-Id: I79f894ffd6002b4c53043101db8f8f8fc5f1abff
This commit is contained in:
Victor Ryzhenkin 2016-11-06 21:39:04 +03:00 committed by Kirill Zaitsev
parent 7e7b25c667
commit 05074a4512
1 changed files with 3 additions and 0 deletions

View File

@ -519,6 +519,9 @@ function configure_local_settings_py() {
sed -e "s/\(^\s*OPENSTACK_HOST\s*=\).*$/\1 '$HOST_IP'/" -i "$HORIZON_LOCAL_CONFIG"
fi
local local_settings=${HORIZON_LOCAL_CONFIG:-$HORIZON_DIR/openstack_dashboard/local/local_settings.py}
_horizon_config_set $HORIZON_LOCAL_CONFIG "" ALLOWED_HOSTS [\'*\']
# Install Murano as plugin for Horizon
ln -sf $MURANO_DASHBOARD_DIR/muranodashboard/local/enabled/*.py $HORIZON_DIR/openstack_dashboard/local/enabled/