OpenStack DNS As A Service (Designate)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.3 KiB

  1. # Copyright 2012-2015 Hewlett-Packard Development Company, L.P.
  2. #
  3. # Author: Kiall Mac Innes <kiall@hpe.com>
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  6. # not use this file except in compliance with the License. You may obtain
  7. # a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. # License for the specific language governing permissions and limitations
  15. # under the License.
  16. import os
  17. from oslo_config import cfg
  18. WSDL_PATH = os.path.abspath(
  19. os.path.join(
  20. os.path.dirname(__file__), '..', 'resources', 'wsdl', 'EnhancedDNS.xml'
  21. )
  22. )
  23. AKAMAI_GROUP = cfg.OptGroup(
  24. name='backend:akamai',
  25. title='Backend options for Akamai'
  26. )
  27. AKAMAI_OPTS = [
  28. cfg.StrOpt('enhanceddns_wsdl',
  29. default='file://%s' % WSDL_PATH,
  30. sample_default=os.path.join('/path', 'to', 'EnhancedDNS.xml'),
  31. help='Akamai EnhancedDNS WSDL URL'),
  32. ]
  33. def register_opts(conf):
  34. conf.register_group(AKAMAI_GROUP)
  35. conf.register_opts(AKAMAI_OPTS, group=AKAMAI_GROUP)
  36. def list_opts():
  37. return {
  38. AKAMAI_GROUP: AKAMAI_OPTS,
  39. }