cookbook-openstack-compute/templates/default/nova.conf.erb
John Dewey a1acd590a0 Changed cookbook name to openstack-compute
Changed the cookbook name to openstack-compute, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: Ic567a33cefd78cc3b2217986d3ff7475bc93f874
2013-05-16 17:59:06 -07:00

157 lines
7.1 KiB
Plaintext

<%= node["openstack-compute"]["custom_template_banner"] %>
[DEFAULT]
# LOGS/STATE
verbose=true
auth_strategy=keystone
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
<% if node["openstack-compute"]["syslog"]["use"] %>
log_config = /etc/openstack/logging.conf
<% end %>
state_path=/var/lib/nova
lock_path=/var/lock/nova
##### RABBITMQ #####
rabbit_userid=<%= @rabbit_user %>
rabbit_password=<%= @rabbit_password %>
rabbit_port=<%= @rabbit_port %>
rabbit_host=<%= @rabbit_ipaddress %>
rabbit_virtual_host=<%= @rabbit_virtual_host %>
##### SCHEDULER #####
# scheduler_manager=nova.scheduler.manager.SchedulerManager
compute_scheduler_driver=<%= node["openstack-compute"]["scheduler"]["scheduler_driver"] %>
scheduler_available_filters=nova.scheduler.filters.standard_filters
# which filter class names to use for filtering hosts when not specified in the request.
scheduler_default_filters=<%= @scheduler_default_filters %>
node_availability_zone=<%= node["openstack-compute"]["config"]["availability_zone"] %>
default_schedule_zone=<%= node["openstack-compute"]["config"]["default_schedule_zone"] %>
storage_availability_zone=<%= node["openstack-compute"]["config"]["storage_availability_zone"] %>
##### NETWORK #####
multi_host=<%= node["openstack-compute"]["network"]["multi_host"] %>
network_manager=<%= node["openstack-compute"]["network"]["network_manager"] %>
public_interface=<%= node["openstack-compute"]["network"]["public_interface"] %>
fixed_range=<%= node["openstack-compute"]["network"]["fixed_range"] %>
dmz_cidr=<%= node["openstack-compute"]["network"]["dmz_cidr"] %>
<% if %w(fedora redhat centos).include? node.platform -%>
# https://bugzilla.redhat.com/show_bug.cgi?id=788485 - not released in epel yet
force_dhcp_release=false
<% else -%>
force_dhcp_release=true
<% end -%>
<% if node["openstack-compute"]["dhcp_domain"] -%>
dhcp_domain=<%= node["openstack-compute"]["dhcp_domain"] %>
<% end %>
send_arp_for_ha=true
use_single_default_gateway=<%= node["openstack-compute"]["network"]["use_single_default_gateway"] %>
<% if node["openstack-compute"]["libvirt"]["virt_type"] == "qemu" -%>
libvirt_use_virtio_for_bridges=false
<% else -%>
libvirt_use_virtio_for_bridges=true
<% end -%>
vlan_interface=<%= node["openstack-compute"]["network"]["vlan_interface"] %>
##### GLANCE #####
image_service=nova.image.glance.GlanceImageService
glance_api_servers=<%= @glance_api_ipaddress %>:<%= @glance_api_port %>
##### COMPUTE #####
compute_manager=nova.compute.manager.ComputeManager
sql_connection=<%= @sql_connection %>
connection_type=libvirt
libvirt_type=<%= node["openstack-compute"]["libvirt"]["virt_type"] %>
# Command prefix to use for running commands as root (default: sudo)
rootwrap_config=/etc/nova/rootwrap.conf
# Should unused base images be removed? (default: false)
remove_unused_base_images=<%= node["openstack-compute"]["libvirt"]["remove_unused_base_images"] %>
# Unused resized base images younger than this will not be removed (default: 3600)
remove_unused_resized_minimum_age_seconds=<%= node["openstack-compute"]["libvirt"]["remove_unused_resized_minimum_age_seconds"] %>
# Unused unresized base images younger than this will not be removed (default: 86400)
remove_unused_original_minimum_age_seconds=<%= node["openstack-compute"]["libvirt"]["remove_unused_original_minimum_age_seconds"] %>
# Write a checksum for files in _base to disk (default: false)
checksum_base_images=<%= node["openstack-compute"]["libvirt"]["checksum_base_images"] %>
##### VNCPROXY #####
novncproxy_base_url=<%= @novncproxy_base_url %>
xvpvncproxy_base_url=<%= @xvpvncproxy_base_url %>
# This is only required on the server running xvpvncproxy
xvpvncproxy_host=<%= @xvpvncproxy_bind_host %>
xvpvncproxy_port=<%= node["openstack-compute"]["xvpvnc_proxy"]["service_port"] %>
# This is only required on the server running novncproxy
novncproxy_host=<%= @novncproxy_bind_host %>
novncproxy_port=<%= node["openstack-compute"]["novnc_proxy"]["service_port"] %>
vncserver_listen=<%= @vncserver_listen %>
vncserver_proxyclient_address=<%= @vncserver_proxyclient_address %>
# store consoleauth tokens in memcached
memcached_servers=<%= @memcache_servers %>
##### MISC #####
# force backing images to raw format
force_raw_images=<%= node["openstack-compute"]["config"]["force_raw_images"] %>
allow_same_net_traffic=<%= node["openstack-compute"]["config"]["allow_same_net_traffic"] %>
osapi_max_limit=<%= node["openstack-compute"]["config"]["osapi_max_limit"] %>
# If you terminate SSL with a load balancer, the HTTP_HOST environ
# variable that generates the request_uri in webob.Request will lack
# the HTTPS scheme. Setting this overrides the default and allows
# URIs returned in the various links collections to contain the proper
# HTTPS endpoint.
osapi_compute_link_prefix = <%= @osapi_compute_link_prefix %>
snapshot_image_format=<%= node["openstack-compute"]["config"]["snapshot_image_format"] %>
start_guests_on_host_boot=<%= node["openstack-compute"]["config"]["start_guests_on_host_boot"] %>
resume_guests_state_on_host_boot=<%= node["openstack-compute"]["config"]["resume_guests_state_on_host_boot"] %>
# number of security groups per project (default: 10)
quota_security_groups=<%= node["openstack-compute"]["config"]["quota_security_groups"] %>
# number of security rules per security group (default: 20)
quota_security_group_rules=<%= node["openstack-compute"]["config"]["quota_security_group_rules"] %>
<%- if /FilterScheduler/.match(node["openstack-compute"]["scheduler"]["scheduler_driver"]) or
/MultiScheduler/.match(node["openstack-compute"]["scheduler"]["scheduler_driver"]) %>
# FilterScheduler Only Options
<%- if /ComputeFilter/.match(@scheduler_default_filters) %>
# virtual CPU to Physical CPU allocation ratio (default: 16.0)
cpu_allocation_ratio=<%= node["openstack-compute"]["config"]["cpu_allocation_ratio"] %>
<%- end %>
<%- if /RamFilter/.match(@scheduler_default_filters) %>
# virtual ram to physical ram allocation ratio (default: 1.5)
ram_allocation_ratio=<%= node["openstack-compute"]["config"]["ram_allocation_ratio"] %>
<%- end %>
<%- elsif /SimpleScheduler/.match(node["openstack-compute"]["scheduler"]["scheduler_driver"]) %>
# SimpleScheduler Only Options
# maximum number of instance cores to allow per host
max_cores=<%= node["openstack-compute"]["config"]["cpu_allocation_ratio"].to_i * node["cpu"]["total"].to_i %>
<%- end %>
<% if %w(fedora redhat centos).include? node.platform -%>
# Adding support for non-modded euca2ools to display ip address info
# https://bugs.launchpad.net/nova/+bug/901594
ec2_private_dns_show_ip=True
<% end -%>
##### WORKERS ######
ec2_workers=<%= node["cpu"]["total"] %>
osapi_compute_workers=<%= node["cpu"]["total"] %>
metadata_workers=<%= node["cpu"]["total"] %>
##### KEYSTONE #####
keystone_ec2_url=<%= @identity_endpoint.scheme %>://<%= @identity_endpoint.host %>:<%= @identity_endpoint.port %>/v2.0/ec2tokens
##### VOLUMES #####
# iscsi target user-land tool to use
iscsi_helper=<%= @iscsi_helper %>
volume_api_class=<%= node["openstack-compute"]["config"]["volume_api_class"] %>
##### THIRD PARTY ADDITIONS #####
<% if node["openstack-compute"]["plugins"] %>
<% node["openstack-compute"]["plugins"].each do |p| %>
osapi_compute_extension=<%= p %>
<% end %>
<% end %>