Reorganize Murano-specific Horizon settings

In M release Horizon settings.py file gained a new degree of
granularity with the introduction of local_settings.d directory where
each Horizon plugin could place its own config snippet (which is still
a traditional Django settings.py module). See
https://review.openstack.org/#/c/243974/ for the reference.

Now it's time to reuse this feature.
This patch add the new settings file. The old settings will be remove
in next patch.

Co-Authored-By: zhurong <aaronzhu1121@gmail.com>

DocImpact
Change-Id: Iaab76f2e8e908093248921ce36a0ff2e9df66722
Closes-Bug: #1585552
This commit is contained in:
Timur Sufiev 2016-04-19 20:39:19 +03:00 committed by zhurong
parent b371ee8581
commit ffde837ea6
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,24 @@
from muranodashboard import exceptions
# The name of the dashboard to be added to HORIZON['dashboards']. Required.
DASHBOARD = 'murano'
# If set to True, this dashboard will not be added to the settings.
DISABLED = False
ADD_INSTALLED_APPS = [
'muranodashboard',
]
ADD_EXCEPTIONS = {
'recoverable': exceptions.RECOVERABLE,
'not_found': exceptions.NOT_FOUND,
'unauthorized': exceptions.UNAUTHORIZED,
}
ADD_JS_FILES = [
'muranodashboard/js/upload_form.js',
'muranodashboard/js/import_bundle_form.js',
'muranodashboard/js/murano.service.js',
'muranodashboard/js/more-less.js',
]

View File

@ -0,0 +1,27 @@
# MURANO_API_URL = "http://localhost:8082"
# Set to True to use Glance Artifact Repository to store murano packages
MURANO_USE_GLARE = False
# Sets the Glance API endpoint to interact with Artifact Repo.
# If left commented the one from keystone will be used
# GLANCE_API_URL = 'http://ubuntu1:9292'
MURANO_REPO_URL = 'http://apps.openstack.org/api/v1/murano_repo/liberty/'
# Overrides the default dashboard name (Murano) that is displayed
# in the main accordion navigation
# MURANO_DASHBOARD_NAME = "Murano"
# Specify a maximum number of limit packages.
# PACKAGES_LIMIT = 100
# Set default session backend from browser cookies to database to
# avoid issues with forms during creating applications.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'murano-dashboard.sqlite',
}
}
SESSION_ENGINE = 'django.contrib.sessions.backends.db'

View File

@ -0,0 +1,4 @@
---
features:
- murano-dashboard now use local_settings.d dir for
its own config snippet from Horizon.