summaryrefslogtreecommitdiff
path: root/attributes/default.rb
blob: ffdf7b46ea60301df109f148c15e4af74c9c67b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# encoding: UTF-8
#
# Cookbook Name:: openstack-dns
# Attributes:: default
#
# Copyright 2017, x-ion GmbH
# Copyright 2017, cloudbau GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

%w(public internal).each do |ep_type|
  # openstack dns-api service endpoints (used by users and services)
  default['openstack']['endpoints'][ep_type]['dns-api']['host'] = '127.0.0.1'
  default['openstack']['endpoints'][ep_type]['dns-api']['scheme'] = 'http'
  default['openstack']['endpoints'][ep_type]['dns-api']['port'] = 9001
end
default['openstack']['bind_service']['all']['dns-api']['host'] = '127.0.0.1'
default['openstack']['bind_service']['all']['dns-api']['port'] = 9001

# Set to some text value if you want templated config files
# to contain a custom banner at the top of the written file
default['openstack']['dns']['custom_template_banner'] = '
# This file was autogenerated by Chef
# Do not edit, changes will be overwritten
'

default['openstack']['dns']['service_role'] = 'service'
default['openstack']['dns']['syslog']['use'] = false

default['openstack']['dns']['api']['auth']['version'] = node['openstack']['api']['auth']['version']

# Settings for the default pool
default['openstack']['dns']['pool']['ns_hostnames'] = ['ns1.example.org.']
default['openstack']['dns']['pool']['ns_addresses'] = ['127.0.0.1']
default['openstack']['dns']['pool']['masters'] = ['127.0.0.1']
default['openstack']['dns']['pool']['bind_hosts'] = ['127.0.0.1']

# platform-specific settings
default['openstack']['dns']['user'] = 'designate'
default['openstack']['dns']['group'] = 'designate'
case node['platform_family']
when 'rhel'
  # Note(jh): TBC
  default['openstack']['dns']['platform'] = {
    'designate_packages' => ['openstack-designate-api', 'openstack-designate-central',
                             'openstack-designate-mdns', 'openstack-designate-producer',
                             'openstack-designate-worker', 'openstack-designate-sink'],
    'designate_api_service' => 'designate-api',
    'designate_central_service' => 'designate-central',
    'designate_sink_service' => 'designate-sink',
    'package_overrides' => '',
  }
when 'debian'
  default['openstack']['dns']['platform'] = {
    'designate_packages' => ['designate-api', 'designate-central', 'designate-mdns',
                             'designate-producer', 'designate-worker', 'bind9utils',
                             'designate-sink'],
    'designate_dashboard_packages' => ['python-designate-dashboard'],
    'designate_api_service' => 'designate-api',
    'designate_central_service' => 'designate-central',
    'designate_mdns_service' => 'designate-mdns',
    'designate_producer_service' => 'designate-producer',
    'designate_worker_service' => 'designate-worker',
    'designate_sink_service' => 'designate-sink',
    'package_overrides' => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'",
  }
end