Chef Cookbook - OpenStack DNS
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.

default.rb 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # encoding: UTF-8
  2. #
  3. # Cookbook Name:: openstack-dns
  4. # Attributes:: default
  5. #
  6. # Copyright 2017, x-ion GmbH
  7. # Copyright 2017, cloudbau GmbH
  8. #
  9. # Licensed under the Apache License, Version 2.0 (the "License");
  10. # you may not use this file except in compliance with the License.
  11. # You may obtain a copy of the License at
  12. #
  13. # http://www.apache.org/licenses/LICENSE-2.0
  14. #
  15. # Unless required by applicable law or agreed to in writing, software
  16. # distributed under the License is distributed on an "AS IS" BASIS,
  17. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. # See the License for the specific language governing permissions and
  19. # limitations under the License.
  20. #
  21. %w(public internal).each do |ep_type|
  22. # openstack dns-api service endpoints (used by users and services)
  23. default['openstack']['endpoints'][ep_type]['dns-api']['host'] = '127.0.0.1'
  24. default['openstack']['endpoints'][ep_type]['dns-api']['scheme'] = 'http'
  25. default['openstack']['endpoints'][ep_type]['dns-api']['port'] = 9001
  26. end
  27. default['openstack']['bind_service']['all']['dns-api']['host'] = '127.0.0.1'
  28. default['openstack']['bind_service']['all']['dns-api']['port'] = 9001
  29. # Set to some text value if you want templated config files
  30. # to contain a custom banner at the top of the written file
  31. default['openstack']['dns']['custom_template_banner'] = '
  32. # This file was autogenerated by Chef
  33. # Do not edit, changes will be overwritten
  34. '
  35. default['openstack']['dns']['service_role'] = 'service'
  36. default['openstack']['dns']['syslog']['use'] = false
  37. default['openstack']['dns']['api']['auth']['version'] = node['openstack']['api']['auth']['version']
  38. # Settings for the default pool
  39. default['openstack']['dns']['pool']['ns_hostname'] = 'ns1.example.org.'
  40. default['openstack']['dns']['pool']['ns_address'] = '127.0.0.1'
  41. default['openstack']['dns']['pool']['masters'] = ['127.0.0.1']
  42. default['openstack']['dns']['pool']['bind_host'] = '127.0.0.1'
  43. # platform-specific settings
  44. default['openstack']['dns']['user'] = 'designate'
  45. default['openstack']['dns']['group'] = 'designate'
  46. case node['platform_family']
  47. # Note(jh): TBC
  48. when 'rhel'
  49. default['openstack']['dns']['platform'] = {
  50. 'designate_packages' => ['openstack-designate'],
  51. 'designate_api_service' => 'openstack-designate-api',
  52. 'designate_central_service' => 'openstack-designate-central',
  53. 'package_overrides' => ''
  54. }
  55. when 'debian'
  56. default['openstack']['dns']['platform'] = {
  57. 'designate_packages' => ['designate-api','designate-central','designate-mdns','designate-producer','designate-worker'],
  58. 'designate_api_service' => 'designate-api',
  59. 'designate_central_service' => 'designate-central',
  60. 'designate_mdns_service' => 'designate-mdns',
  61. 'designate_producer_service' => 'designate-producer',
  62. 'designate_worker_service' => 'designate-worker',
  63. 'package_overrides' => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'"
  64. }
  65. end