crowbar/crowbar-openstack

View on GitHub
chef/cookbooks/ironic/templates/default/ironic.conf.erb

Summary

Maintainability
Test Coverage
[DEFAULT]
enabled_hardware_types=<%= @enabled_hardware_types.join(',') %>
enabled_boot_interfaces=<%= @enabled_boot_interfaces.join(',') %>
enabled_console_interfaces=<%= @enabled_console_interfaces.join(',') %>
enabled_deploy_interfaces=<%= @enabled_deploy_interfaces.join(',') %>
enabled_inspect_interfaces=<%= @enabled_inspect_interfaces.join(',') %>
enabled_management_interfaces=<%= @enabled_management_interfaces.join(',') %>
enabled_network_interfaces=<%= @enabled_network_interfaces.join(',') %>
enabled_power_interfaces=<%= @enabled_power_interfaces.join(',') %>
enabled_raid_interfaces=<%= @enabled_raid_interfaces.join(',') %>
enabled_storage_interfaces=<%= @enabled_storage_interfaces.join(',') %>
enabled_vendor_interfaces=<%= @enabled_vendor_interfaces.join(',') %>

my_ip=<%= @ironic_ip %>
debug=<%= @debug ? 'true' : 'false' %>
transport_url=<%= @rabbit_settings[:url] %>
control_exchange=ironic

[api]
host_ip=0.0.0.0
port=<%= @api_port %>
public_endpoint=<%= @public_endpoint %>

[conductor]
api_url=<%= @api_url %>
automated_clean=<%= @automated_clean %>

[database]
connection=<%= @database_connection %>
max_pool_size=30
max_overflow=10
pool_timeout=30

[glance]
glance_api_servers=<%= @glance_settings[:protocol] %>://<%= @glance_settings[:host] %>:<%= @glance_settings[:port] %>
auth_strategy=keystone
auth_type=password
auth_url=<%= @keystone_settings['internal_auth_url'] %>
region_name=<%= @keystone_settings['endpoint_region'] %>
username=<%= @glance_settings[:service_user] %>
password=<%= @glance_settings[:service_password] %>
project_name=<%= @keystone_settings['service_tenant'] %>
project_domain_name=<%= @keystone_settings["admin_domain"]%>
user_domain_name=<%= @keystone_settings["admin_domain"] %>
<% if @swift_settings %>
swift_temp_url_key=<%= @swift_settings[:tempurl_key] %>
swift_endpoint_url=<%= @swift_settings[:protocol] %>://<%= @swift_settings[:ip] %>:<%= @swift_settings[:port] %>
swift_container=<%= @swift_settings[:glance_container] %>
swift_account=<%= @swift_settings[:glance_account] %>
<% end %>

[swift]
auth_type=password
auth_url=<%= @keystone_settings['internal_auth_url'] %>
region_name=<%= @keystone_settings['endpoint_region'] %>
username=<%= if @swift_settings then @swift_settings[:service_user] else '' end %>
password=<%= if @swift_settings then @swift_settings[:service_password] else '' end %>
project_name=<%= @keystone_settings['service_tenant'] %>
project_domain_name=<%= @keystone_settings["admin_domain"]%>
user_domain_name=<%= @keystone_settings["admin_domain"] %>
<% if @swift_settings %>
endpoint_override=<%= @swift_settings[:protocol] %>://<%= @swift_settings[:ip] %>:<%= @swift_settings[:port] %>/v1/<%= @swift_settings[:glance_account] %>
<% end %>

[keystone]
region_name=<%= @keystone_settings['endpoint_region'] %>

[keystone_authtoken]
auth_type=password
www_authenticate_uri=<%= @keystone_settings['protocol'] %>://<%= @keystone_settings['public_url_host'] %>:<%= @keystone_settings['service_port'] %>/<%= @auth_version %>/
auth_url=<%= @keystone_settings['admin_auth_url'] %>
auth_version=<%= @auth_version %>
region_name=<%= @keystone_settings['endpoint_region'] %>
username=<%= @keystone_settings['service_user'] %>
password=<%= @keystone_settings['service_password'] %>
project_name=<%= @keystone_settings['service_tenant'] %>
project_domain_name=<%= @keystone_settings['admin_domain']%>
user_domain_name=<%= @keystone_settings['admin_domain'] %>
service_token_roles_required = true
service_token_roles = admin
memcached_servers = <%= @memcached_servers.join(',') %>
memcache_security_strategy = ENCRYPT
memcache_secret_key = <%= node[:ironic][:memcache_secret_key] %>
memcache_pool_socket_timeout = 1

[neutron]
auth_type=password
url=<%= @neutron_settings[:protocol] %>://<%= @neutron_settings[:host] %>:<%= @neutron_settings[:port] %>
auth_strategy=keystone
auth_url=<%= @keystone_settings['internal_auth_url'] %>
region_name=<%= @keystone_settings['endpoint_region'] %>
username=<%= @neutron_settings[:service_user] %>
password=<%= @neutron_settings[:service_password] %>
project_name=<%= @keystone_settings['service_tenant'] %>
project_domain_name=<%= @keystone_settings['admin_domain']%>
user_domain_name=<%= @keystone_settings['admin_domain'] %>
port_setup_delay=15
cleaning_network=<%= @ironic_net_name %>

[inspector]
auth_type=password
auth_url=<%= @keystone_settings['admin_auth_url'] %>
auth_version=<%= @auth_version %>
region_name=<%= @keystone_settings['endpoint_region'] %>
username=<%= @keystone_settings['service_user'] %>
password=<%= @keystone_settings['service_password'] %>
project_name=<%= @keystone_settings['service_tenant'] %>
project_domain_name=<%= @keystone_settings['admin_domain']%>
user_domain_name=<%= @keystone_settings['admin_domain'] %>

[service_catalog]
auth_type=password
auth_url=<%= @keystone_settings['admin_auth_url'] %>
auth_version=<%= @auth_version %>
region_name=<%= @keystone_settings['endpoint_region'] %>
username=<%= @keystone_settings['service_user'] %>
password=<%= @keystone_settings['service_password'] %>
project_name=<%= @keystone_settings['service_tenant'] %>
project_domain_name=<%= @keystone_settings['admin_domain']%>
user_domain_name=<%= @keystone_settings['admin_domain'] %>

[oslo_concurrency]
lock_path=/var/run/ironic

[oslo_messaging_rabbit]
amqp_durable_queues = <%= @rabbit_settings[:durable_queues] %>
rabbit_ha_queues = <%= @rabbit_settings[:ha_queues] %>
ssl = <%= @rabbit_settings[:use_ssl] %>
<% if @rabbit_settings[:client_ca_certs] -%>
ssl_ca_file = <%= @rabbit_settings[:client_ca_certs] %>
<% end -%>
heartbeat_timeout_threshold = <%= @rabbit_settings[:heartbeat_timeout] %>

[pxe]
tftp_server=<%= @tftp_ip %>
tftp_root=<%= @tftproot %>
tftp_master_path=<%= @tftproot %>/master_images
pxe_append_params=<%= @pxe_append_params %>

[deploy]
default_boot_option=netboot
<% if @swift_settings -%>
configdrive_use_object_store=<%= @configdrive_use_object_store %>
object_store_endpoint_type=swift
<% end -%>