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 | |
| 16 | dns_group = cfg.OptGroup(name='dns', |
| 17 | title='DNS service options') |
| 18 | |
| 19 | DnsGroup = [ |
| 20 | cfg.StrOpt('endpoint_type', |
| 21 | default='publicURL', |
| 22 | choices=['public', 'admin', 'internal', |
| 23 | 'publicURL', 'adminURL', 'internalURL'], |
| 24 | help="The endpoint type to use for the DNS service"), |
| 25 | cfg.StrOpt('catalog_type', |
| 26 | default='dns', |
| 27 | help="Catalog type of the DNS service"), |
| 28 | cfg.IntOpt('build_interval', |
| 29 | default=1, |
| 30 | help="Time in seconds between build status checks."), |
| 31 | cfg.IntOpt('build_timeout', |
| 32 | default=60, |
| 33 | help="Timeout in seconds to wait for an resource to build."), |
| 34 | ] |