cookbook-openstack-dns/attributes/default.rb

73 lines
2.8 KiB
Ruby

# 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']['path'] = '/v1/%(tenant_id)s'
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']['designate']['custom_template_banner'] = '
# This file was autogenerated by Chef
# Do not edit, changes will be overwritten
'
default['openstack']['dns']['syslog']['use']
# This is the name of the Chef role that will install the Keystone Service API
default['openstack']['dns']['identity_service_chef_role'] = 'os-identity'
# The name of the Chef role that knows about the message queue server
# that Heat uses
default['openstack']['dns']['rabbit_server_chef_role'] = 'os-ops-messaging'
default['openstack']['dns']['service_role'] = 'service'
default['openstack']['dns']['ec2authtoken']['auth']['version'] = 'v2.0'
default['openstack']['dns']['api']['auth']['version'] = node['openstack']['api']['auth']['version']
# platform-specific settings
default['openstack']['dns']['user'] = 'designate'
default['openstack']['dns']['group'] = 'designate'
case platform_family
# Note(jh): TBC
when 'rhel'
default['openstack']['dns']['platform'] = {
'designate_packages' => ['openstack-designate'],
'designate_api_service' => 'openstack-designate-api',
'designate_central_service' => 'openstack-designate-central',
'package_overrides' => ''
}
when 'debian'
default['openstack']['dns']['platform'] = {
'designate_packages' => ['designate'],
'designate_api_service' => 'designate-api',
'designate_central_service' => 'designate-central',
'package_overrides' => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'"
}
end