diff --git a/README.rst b/README.rst index 5adc1f9..89f1ad6 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/designatedashboard/local_settings.d/_1799_dns_settings.py b/designatedashboard/local_settings.d/_1799_dns_settings.py new file mode 100644 index 0000000..1e01805 --- /dev/null +++ b/designatedashboard/local_settings.d/_1799_dns_settings.py @@ -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, +# } +# })