Merge "Add example dashboard config file"
This commit is contained in:
commit
928f859fc7
@ -48,12 +48,14 @@ Howto
|
||||
and should be copied to /usr/share/openstack-dashboard/openstack_dashboard/local/enabled or the
|
||||
equivalent directory for your openstack-dashboard install.
|
||||
|
||||
3. Copy default config file into your Horizon config. The file can be found in designatedashboard/local_settings.d
|
||||
and should be copied to /etc/openstack-dashboard/local_settings.d or the equivalent directory
|
||||
for your openstack-dashboard install.
|
||||
|
||||
3. Make sure your keystone catalog contains endpoints for service type 'dns'. If no such endpoints are
|
||||
found, the designatedashboard panels will not render.
|
||||
|
||||
4. (Optional) Copy the designate policy file into horizon's policy files folder, and add this config::
|
||||
|
||||
'dns': 'designate_policy.json',
|
||||
4. (Optional) Copy the designate policy file into horizon's policy files folder.
|
||||
|
||||
|
||||
Test
|
||||
|
32
designatedashboard/local_settings.d/_1799_dns_settings.py
Normal file
32
designatedashboard/local_settings.d/_1799_dns_settings.py
Normal file
@ -0,0 +1,32 @@
|
||||
# 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 dns(Designate) functions.
|
||||
from django.conf import settings
|
||||
|
||||
settings.POLICY_FILES.update({
|
||||
'dns': 'designate_policy.yaml'
|
||||
})
|
||||
|
||||
settings.DEFAULT_POLICY_FILES.update({
|
||||
'dns': 'default_policies/designate.yaml'
|
||||
})
|
||||
|
||||
# Sample
|
||||
# settings.LOGGING['loggers'].update({
|
||||
# 'designateclient': {
|
||||
# 'handlers': ['console'],
|
||||
# 'level': 'DEBUG',
|
||||
# 'propagate': False,
|
||||
# }
|
||||
# })
|
Loading…
x
Reference in New Issue
Block a user