Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add DEPLOYMENT_MODE to local_settings.py
Browse files Browse the repository at this point in the history
DEPLOYMENT_MODE determine if we do flavor matching, it can be "poc" (No) or "scale" (Yes).
This is used in Tuskar-ui to show flavor administration options etc.

Change-Id: I6a1b1cbb9cfe8d2750023d6ea633cf3390468c43
  • Loading branch information
regebro authored and Lennart Regebro committed Sep 27, 2014
1 parent 4ca9b79 commit f215403
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ tuskar --tuskar-api-version 2 plan-patch -A controller-1::Image=$CONTROL_IMAGE_I

echo "UNDERCLOUD_ADMIN_PASSWORD = \"${OS_PASSWORD}\"" >> $HORIZON_VENV_DIR/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.py

DEPLOYMENT_MODE=$(os-apply-config --key deployment-mode --key-default=poc)
echo "DEPLOYMENT_MODE = \"${DEPLOYMENT_MODE}\"" >> $HORIZON_VENV_DIR/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.py

DJANGO_SETTINGS_MODULE=openstack_dashboard.settings django-admin.py collectstatic --noinput
DJANGO_SETTINGS_MODULE=openstack_dashboard.settings django-admin.py compress --force

Expand Down

0 comments on commit f215403

Please sign in to comment.