Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 1 | # Copyright 2016 Hewlett Packard Enterprise Development Company, L.P. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | from oslo_config import cfg |
| 15 | |
Kiall Mac Innes | 8ae796c | 2016-04-21 13:47:25 +0100 | [diff] [blame^] | 16 | service_available_group = cfg.OptGroup(name="service_available", |
| 17 | title="Available OpenStack Services") |
| 18 | |
| 19 | ServiceAvailableGroup = [ |
| 20 | cfg.BoolOpt("designate", |
| 21 | default=True, |
| 22 | help="Whether or not designate is expected to be available."), |
| 23 | ] |
| 24 | |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 25 | dns_group = cfg.OptGroup(name='dns', |
| 26 | title='DNS service options') |
| 27 | |
| 28 | DnsGroup = [ |
| 29 | cfg.StrOpt('endpoint_type', |
| 30 | default='publicURL', |
| 31 | choices=['public', 'admin', 'internal', |
| 32 | 'publicURL', 'adminURL', 'internalURL'], |
| 33 | help="The endpoint type to use for the DNS service"), |
| 34 | cfg.StrOpt('catalog_type', |
| 35 | default='dns', |
| 36 | help="Catalog type of the DNS service"), |
| 37 | cfg.IntOpt('build_interval', |
| 38 | default=1, |
| 39 | help="Time in seconds between build status checks."), |
| 40 | cfg.IntOpt('build_timeout', |
| 41 | default=60, |
| 42 | help="Timeout in seconds to wait for an resource to build."), |
| 43 | ] |
Kiall Mac Innes | 8ae796c | 2016-04-21 13:47:25 +0100 | [diff] [blame^] | 44 | |
| 45 | dns_feature_group = cfg.OptGroup(name='dns_feature_enabled', |
| 46 | title='Enabled Designate Features') |
| 47 | |
| 48 | DnsFeatureGroup = [ |
| 49 | cfg.BoolOpt('api_v1', |
| 50 | default=True, |
| 51 | help="Is the v1 dns API enabled."), |
| 52 | cfg.BoolOpt('api_v2', |
| 53 | default=True, |
| 54 | help="Is the v2 dns API enabled."), |
| 55 | cfg.BoolOpt('api_admin', |
| 56 | default=True, |
| 57 | help="Is the admin dns API enabled."), |
| 58 | cfg.BoolOpt('api_v1_servers', |
| 59 | default=False, |
| 60 | help="Is the v1 dns servers API enabled."), |
| 61 | ] |