cookbook-openstack-bare-metal/attributes/default.rb

82 lines
3.3 KiB
Ruby

# encoding: UTF-8
#
# Cookbook Name:: openstack-bare-metal
# Attributes:: default
#
# Copyright 2015, IBM, Corp
#
# 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.
#
# 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']['bare-metal']['custom_template_banner'] = "
# This file autogenerated by Chef
# Do not edit, changes will be overwritten
"
default['openstack']['bare-metal']['verbose'] = 'false'
default['openstack']['bare-metal']['debug'] = 'false'
# Common rpc definitions
default['openstack']['bare-metal']['rpc_thread_pool_size'] = 64
default['openstack']['bare-metal']['rpc_conn_pool_size'] = 30
default['openstack']['bare-metal']['rpc_response_timeout'] = 60
# Logging stuff
default['openstack']['bare-metal']['log_dir'] = '/var/log/ironic'
default['openstack']['bare-metal']['syslog']['use'] = false
default['openstack']['bare-metal']['syslog']['facility'] = 'LOG_LOCAL1'
default['openstack']['bare-metal']['syslog']['config_facility'] = 'local1'
default['openstack']['bare-metal']['region'] = node['openstack']['region']
# Keystone settings
default['openstack']['bare-metal']['api']['auth_strategy'] = 'keystone'
default['openstack']['bare-metal']['api']['auth']['version'] = node['openstack']['api']['auth']['version']
default['openstack']['bare-metal']['service_tenant_name'] = 'service'
default['openstack']['bare-metal']['service_user'] = 'ironic'
default['openstack']['bare-metal']['service_role'] = 'admin'
default['openstack']['bare-metal']['user'] = 'ironic'
default['openstack']['bare-metal']['group'] = 'ironic'
# rootwrap.conf
default['openstack']['bare-metal']['rootwrap']['filters_path'] = '/etc/ironic/rootwrap.d,/usr/share/ironic/rootwrap'
default['openstack']['bare-metal']['rootwrap']['exec_dirs'] = '/sbin,/usr/sbin,/bin,/usr/bin'
default['openstack']['bare-metal']['rootwrap']['use_syslog'] = false
default['openstack']['bare-metal']['rootwrap']['syslog_log_facility'] = 'syslog'
default['openstack']['bare-metal']['rootwrap']['syslog_log_level'] = 'ERROR'
case platform_family
when 'fedora', 'rhel'
default['openstack']['bare-metal']['platform'] = {
'ironic_api_packages' => ['openstack-ironic-api'],
'ironic_api_service' => 'openstack-ironic-api',
'ironic_conductor_packages' => ['openstack-ironic-conductor'],
'ironic_conductor_service' => 'openstack-ironic-conductor',
'ironic_common_packages' => ['openstack-ironic-common', 'python-ironicclient']
}
when 'debian'
default['openstack']['bare-metal']['platform'] = {
'ironic_api_packages' => ['ironic-api'],
'ironic_api_service' => 'ironic-api',
'ironic_conductor_packages' => ['ironic-conductor'],
'ironic_conductor_service' => 'ironic-conductor',
'ironic_common_packages' => ['python-ironicclient', 'ironic-common']
}
end