Merge "Add option to enable admin API and quotas"

This commit is contained in:
Zuul 2018-05-14 11:24:28 +00:00 committed by Gerrit Code Review
commit 0899d0182e
2 changed files with 8 additions and 0 deletions

View File

@ -74,3 +74,7 @@ options:
Space delimited list of DNS servers which should be notified on every
zone change in addition to the backend servers. List is of the form
also_notify_ip:also_notify_port
enable-admin-api:
type: boolean
default: false
description: Enables experimental admin API for Designate.

View File

@ -120,11 +120,15 @@ enable_api_v2 = True
# Enable Admin API (experimental)
#enable_api_admin = False
enable_api_admin = {{ options.enable_admin_api }}
# Enabled Admin API extensions
# Can be one or more of : reports, quotas, counts, tenants, zones
# zone export is in zones extension
#enabled_extensions_admin =
{% if options.enable_admin_api -%}
enabled_extensions_admin = reports, quotas, counts, tenants, zones
{%- endif %}
# Default per-page limit for the Admin API, a value of None means show all results
# by default