Merge "Split out heat own items from Horizon settings."
This commit is contained in:
commit
82e0e82a7f
13
README.rst
13
README.rst
@ -67,16 +67,11 @@ Enable heat-dashboard plugin in your Horizon environment::
|
||||
cp heat-dashboard/heat_dashboard/enabled/* \
|
||||
horizon/openstack_dashboard/local/enabled
|
||||
|
||||
Add 'orchestration' entry to POLICY_FILES value in local_settings.py::
|
||||
cp heat-dashboard/etc/* \
|
||||
horizon/openstack_dashboard/conf/
|
||||
|
||||
POLICY_FILES = {
|
||||
'identity': 'keystone_policy.json',
|
||||
'compute': 'nova_policy.json',
|
||||
'volume': 'cinder_policy.json',
|
||||
'image': 'glance_policy.json',
|
||||
'orchestration': '<Heat-Dashboard path>/etc/heat_policy.json', <-- add this key/value pair
|
||||
'network': 'neutron_policy.json',
|
||||
}
|
||||
cp heat-dashboard/heat_dashboard/local_settings.d/* \
|
||||
horizon/openstack_dashboard/local/local_settings.d/
|
||||
|
||||
|
||||
Finally you can launch Horizon with Heat Dashboard plugin::
|
||||
|
@ -16,6 +16,7 @@ function install_heat_dashboard {
|
||||
|
||||
function configure_heat_dashboard {
|
||||
cp -a ${HEAT_DASHBOARD_DIR}/heat_dashboard/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
|
||||
cp -a ${HEAT_DASHBOARD_DIR}/heat_dashboard/local_settings.d ${DEST}/horizon/openstack_dashboard/local/local_settings.d/
|
||||
cp -a ${HEAT_DASHBOARD_DIR}/etc/heat_policy.json ${DEST}/horizon/openstack_dashboard/conf/
|
||||
# NOTE: If locale directory does not exist, compilemessages will fail,
|
||||
# so check for an existence of locale directory is required.
|
||||
|
@ -47,16 +47,11 @@ Enable heat-dashboard plugin in your Horizon environment::
|
||||
cp heat-dashboard/heat_dashboard/enabled/* \
|
||||
horizon/openstack_dashboard/local/enabled
|
||||
|
||||
Add 'orchestration' entry to POLICY_FILES value in local_settings.py::
|
||||
cp heat-dashboard/etc/* \
|
||||
horizon/openstack_dashboard/conf/
|
||||
|
||||
POLICY_FILES = {
|
||||
'identity': 'keystone_policy.json',
|
||||
'compute': 'nova_policy.json',
|
||||
'volume': 'cinder_policy.json',
|
||||
'image': 'glance_policy.json',
|
||||
'orchestration': '<Heat-Dashboard path>/etc/heat_policy.json', <-- add this key/value pair
|
||||
'network': 'neutron_policy.json',
|
||||
}
|
||||
cp heat-dashboard/heat_dashboard/local_settings.d/* \
|
||||
horizon/openstack_dashboard/local/local_settings.d/
|
||||
|
||||
|
||||
Finally you can launch Horizon with Heat Dashboard plugin::
|
||||
|
@ -0,0 +1,33 @@
|
||||
# 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.
|
||||
|
||||
# This file is to be included for configuring application which relates
|
||||
# to orchestration(Heat) functions.
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
OPENSTACK_HEAT_STACK = {
|
||||
'enable_user_pass': True,
|
||||
}
|
||||
|
||||
settings.LOGGING['loggers'].update({
|
||||
'heatclient': {
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG',
|
||||
'propagate': False,
|
||||
}
|
||||
})
|
||||
|
||||
settings.POLICY_FILES.update({
|
||||
'orchestration': 'heat_policy.json',
|
||||
})
|
0
heat_dashboard/local_settings.d/__init__.py
Normal file
0
heat_dashboard/local_settings.d/__init__.py
Normal file
Loading…
x
Reference in New Issue
Block a user