blob: e4e02708315162661d31a301352b2b666c26a2a5 [file] [log] [blame]
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +01001# 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.
14from oslo_config import cfg
15
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010016service_available_group = cfg.OptGroup(name="service_available",
17 title="Available OpenStack Services")
18
19ServiceAvailableGroup = [
20 cfg.BoolOpt("designate",
21 default=True,
22 help="Whether or not designate is expected to be available."),
23]
24
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010025dns_group = cfg.OptGroup(name='dns',
26 title='DNS service options')
27
28DnsGroup = [
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',
Kiall Mac Innes0b122572016-05-23 14:19:07 +010041 default=120,
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010042 help="Timeout in seconds to wait for an resource to build."),
Paul Glassa3ab50c2016-05-11 16:37:18 -050043 cfg.IntOpt('min_ttl',
44 default=1,
45 help="The minimum value to respect when generating ttls"),
Paul Glasscf98c262016-05-13 19:34:37 +000046 cfg.ListOpt('nameservers',
47 default=[],
48 help="The nameservers to check for change going live"),
49 cfg.IntOpt('query_timeout',
50 default=1,
51 help="The timeout on a single dns query to a nameserver"),
Paul Glassa3ab50c2016-05-11 16:37:18 -050052
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010053]
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010054
55dns_feature_group = cfg.OptGroup(name='dns_feature_enabled',
56 title='Enabled Designate Features')
57
58DnsFeatureGroup = [
59 cfg.BoolOpt('api_v1',
60 default=True,
61 help="Is the v1 dns API enabled."),
62 cfg.BoolOpt('api_v2',
63 default=True,
64 help="Is the v2 dns API enabled."),
65 cfg.BoolOpt('api_admin',
66 default=True,
67 help="Is the admin dns API enabled."),
68 cfg.BoolOpt('api_v1_servers',
69 default=False,
70 help="Is the v1 dns servers API enabled."),
sonu.kumar53dbdbb2016-05-16 17:20:45 +090071 cfg.BoolOpt('api_v2_root_recordsets',
72 default=False,
73 help="Is the v2 root recordsets API enabled."),
Graham Hayesc8114982016-07-04 17:46:08 +010074 cfg.BoolOpt('api_v2_quotas',
75 default=False,
76 help="Is the v2 quota API enabled."),
77 cfg.BoolOpt('bug_1573141_fixed',
78 default=False,
79 help="Is https://bugs.launchpad.net/designate/+bug/1573141 "
80 "fixed"),
Kiall Mac Innes8ae796c2016-04-21 13:47:25 +010081]