blob: 82b0d2d7edf523ae83ce1e9b47205384ac635370 [file] [log] [blame]
{%- from "nova/map.jinja" import compute with context %}
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=False
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
{%- if compute.image.use_cow is defined %}
use_cow_images = {{ compute.image.use_cow }}
{%- endif %}
allow_resize_to_same_host=True
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
live_migration_retry_count=30
#Neutron
neutron_admin_username={{ compute.network.user }}
neutron_admin_password={{ compute.network.password }}
neutron_admin_tenant_name={{ compute.identity.tenant }}
neutron_admin_auth_url=http://{{ compute.identity.host }}:{{ compute.identity.port }}/v2.0
neutron_url=http://{{ compute.network.host }}:{{ compute.network.port }}
#neutron_url = http://10.0.102.35:9696/
auth_strategy = keystone
libvirt_nonblocking = True
libvirt_inject_partition = -1
neutron_url_timeout = 300
network_api_class=nova.network.neutronv2.api.API
compute_driver = libvirt.LibvirtDriver
#NoVNC
vnc_enabled=true
vncserver_enabled = true
vncserver_listen=0.0.0.0
vncserver_proxyclient_address={{ compute.bind.vnc_address }}
novncproxy_base_url={{ compute.vncproxy_url }}/vnc_auto.html
novncproxy_port={{ compute.bind.vnc_port }}
{%- if compute.cache is defined %}
memcached_servers={%- for member in compute.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
{%- endif %}
security_group_api = neutron
heal_instance_info_cache_interval = 0
libvirt_cpu_mode = host-passthrough
image_cache_manager_interval = 0
libvirt_vif_driver = nova_contrail_vif.contrailvif.VRouterVIFDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
glance_port = 9292
glance_num_retries = 10
rabbit_retry_interval = 1
rabbit_retry_backoff = 2
rpc_cast_timeout = 30
rpc_conn_pool_size = 300
rpc_response_timeout = 3600
rpc_thread_pool_size = 70
report_interval = 5
block_device_allocate_retries=600
block_device_allocate_retries_interval=10
resume_guests_state_on_host_boot = True
service_down_time = 90
{% if pillar.ceilometer is defined %}
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
{% endif %}
{%- if compute.notification is defined %}
notification_driver = {{ compute.notification.driver }}
{%- if compute.notification.topics is defined %}
notification_topics = {{ compute.notification.topics }}
{%- endif %}
{%- if compute.notification.notify_on is defined %}
{%- for key, value in compute.notification.notify_on.iteritems() %}
notify_on_{{ key }} = {{ value }}
{%- endfor %}
{%- endif %}
{%- endif %}
[keystone_authtoken]
signing_dirname=/tmp/keystone-signing-nova
admin_tenant_name = {{ compute.identity.tenant }}
admin_user = {{ compute.identity.user }}
admin_password = {{ compute.identity.password }}
auth_host = {{ compute.identity.host }}
auth_port = {{ compute.identity.port }}
auth_protocol=http
auth_uri=http://{{ compute.identity.host }}:5000
[oslo_messaging_rabbit]
rabbit_host = {{ compute.message_queue.host }}
rabbit_port = {{ compute.message_queue.port }}
rabbit_hosts={{ compute.message_queue.host }}:{{ compute.message_queue.port }}
rabbit_userid = {{ compute.message_queue.user }}
rabbit_password = {{ compute.message_queue.password }}
rabbit_virtual_host = {{ compute.message_queue.virtual_host }}
[glance]
host = {{ compute.image.host }}
[neutron]
auth_strategy = keystone
admin_username={{ compute.network.user }}
admin_password={{ compute.network.password }}
admin_tenant_name={{ compute.identity.tenant }}
admin_auth_url=http://{{ compute.identity.host }}:{{ compute.identity.port }}/v2.0
url=http://{{ compute.network.host }}:{{ compute.network.port }}
[cinder]
os_region_name = RegionOne