235 lines
6.6 KiB
Plaintext
235 lines
6.6 KiB
Plaintext
## NB: Unpolished config file
|
|
## This config file was taken directly from the upstream repo, and tweaked just enough to work.
|
|
## It has not been audited to ensure that everything present is either Heat controlled or a mandatory as-is setting.
|
|
## Please submit patches for any setting that should be deleted or Heat-configurable.
|
|
## https://git.openstack.org/cgit/openstack/tripleo-image-elements
|
|
|
|
|
|
[DEFAULT]
|
|
{{#nova.verbose}}
|
|
# Print more verbose output (set logging level to INFO instead
|
|
# of default WARNING level). (boolean value)
|
|
verbose={{nova.verbose}}
|
|
{{/nova.verbose}}
|
|
{{#nova.debug}}
|
|
# Print debugging output (set logging level to DEBUG instead
|
|
# of default WARNING level). (boolean value)
|
|
debug={{nova.debug}}
|
|
{{/nova.debug}}
|
|
|
|
{{#nova.baremetal}}
|
|
# Scheduler will always pick node with less ram first. When we will have
|
|
# exact match, this will not be needed.
|
|
ram_weight_multiplier=-1.0
|
|
{{/nova.baremetal}}
|
|
|
|
s3_host={{keystone.host}}
|
|
ec2_dmz_host={{keystone.host}}
|
|
ec2_url=http://{{nova.host}}:8773/services/Cloud
|
|
|
|
{{#local-ipv4}}
|
|
my_ip={{local-ipv4}}
|
|
{{/local-ipv4}}
|
|
{{#haproxy}}
|
|
{{#stunnel.connect_ip}}
|
|
osapi_compute_listen={{stunnel.connect_ip}}
|
|
ec2_listen={{stunnel.connect_ip}}
|
|
metadata_listen={{stunnel.connect_ip}}
|
|
{{/stunnel.connect_ip}}
|
|
{{^stunnel.connect_ip}}
|
|
osapi_compute_listen={{local-ipv4}}
|
|
ec2_listen={{local-ipv4}}
|
|
metadata_listen={{local-ipv4}}
|
|
{{/stunnel.connect_ip}}
|
|
{{/haproxy}}
|
|
|
|
{{#nova.default_ephemeral_format}}
|
|
default_ephemeral_format={{.}}
|
|
{{/nova.default_ephemeral_format}}
|
|
|
|
state_path=/mnt/state/var/lib/nova
|
|
lock_path=/mnt/state/var/lib/nova
|
|
keys_path=/mnt/state/var/lib/nova/keys
|
|
|
|
api_paste_config=/etc/nova/api-paste.ini
|
|
|
|
# Auth
|
|
auth_strategy=keystone
|
|
keystone_ec2_url=http://{{keystone.host}}:5000/v2.0/ec2tokens
|
|
# Imaging service
|
|
glance_api_servers={{glance.protocol}}://{{glance.host}}:{{glance.port}}
|
|
|
|
# VNC configuration
|
|
{{#nova.public_ip}}
|
|
novncproxy_base_url=http://{{nova.public_ip}}:6080/vnc_auto.html
|
|
{{/nova.public_ip}}
|
|
novncproxy_port=6080
|
|
vncserver_proxyclient_address={{local-ipv4}}
|
|
vncserver_listen=0.0.0.0
|
|
|
|
# Networking #
|
|
{{#nova.default_floating_pool}}
|
|
default_floating_pool={{nova.default_floating_pool}}
|
|
{{/nova.default_floating_pool}}
|
|
network_api_class=nova.network.neutronv2.api.API
|
|
neutron_url=http://{{neutron.host}}:9696
|
|
neutron_auth_strategy=keystone
|
|
neutron_admin_tenant_name=service
|
|
neutron_admin_username=neutron
|
|
neutron_admin_password={{neutron.service-password}}
|
|
neutron_admin_auth_url=http://{{keystone.host}}:35357/v2.0
|
|
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
|
|
service_neutron_metadata_proxy={{nova.metadata-proxy}}
|
|
{{#neutron.metadata_proxy_shared_secret}}
|
|
neutron_metadata_proxy_shared_secret={{neutron.metadata_proxy_shared_secret}}
|
|
{{/neutron.metadata_proxy_shared_secret}}
|
|
|
|
dhcpbridge_flagfile=/etc/nova/nova.conf
|
|
dhcpbridge=/usr/bin/nova-dhcpbridge
|
|
dhcp_options_enabled=true
|
|
|
|
rootwrap_config=/etc/nova/rootwrap.conf
|
|
security_group_api=neutron
|
|
firewall_driver=nova.virt.firewall.NoopFirewallDriver
|
|
|
|
# Cinder #
|
|
volume_api_class=nova.volume.cinder.API
|
|
|
|
{{#rabbit}}
|
|
rabbit_password={{password}}
|
|
rpc_backend=nova.openstack.common.rpc.impl_kombu
|
|
{{#rabbit.nodes}}
|
|
rabbit_hosts={{rabbit.nodes}}
|
|
rabbit_ha_queues=true
|
|
{{/rabbit.nodes}}
|
|
{{^rabbit.nodes}}
|
|
rabbit_host={{host}}
|
|
{{/rabbit.nodes}}
|
|
{{/rabbit}}
|
|
|
|
{{#qpid}}
|
|
qpid_hostname={{host}}
|
|
qpid_username={{username}}
|
|
qpid_password={{password}}
|
|
rpc_backend=nova.openstack.common.rpc.impl_qpid
|
|
{{/qpid}}
|
|
|
|
enabled_apis = ec2,osapi_compute,metadata,openstack_compute_api_v2
|
|
|
|
compute_driver = {{nova.compute_driver}}
|
|
|
|
{{#nova.compute_manager}}
|
|
compute_manager = {{.}}
|
|
{{/nova.compute_manager}}
|
|
{{#nova.image_cache_manager_interval}}
|
|
image_cache_manager_interval= {{nova.image_cache_manager_interval}}
|
|
{{/nova.image_cache_manager_interval}}
|
|
{{#nova.resize_fs_using_block_device}}
|
|
resize_fs_using_block_device = {{nova.resize_fs_using_block_device}}
|
|
{{/nova.resize_fs_using_block_device}}
|
|
{{#nova.resume_guests_state_on_host_boot}}
|
|
resume_guests_state_on_host_boot = {{nova.resume_guests_state_on_host_boot}}
|
|
{{/nova.resume_guests_state_on_host_boot}}
|
|
{{#nova.running_deleted_instance_action}}
|
|
running_deleted_instance_action = {{nova.running_deleted_instance_action}}
|
|
{{/nova.running_deleted_instance_action}}
|
|
{{#nova.virt_mkfs}}
|
|
virt_mkfs = {{nova.virt_mkfs}}
|
|
{{/nova.virt_mkfs}}
|
|
|
|
# nova-compute configuration for ceilometer
|
|
{{#ceilometer.compute_agent}}
|
|
instance_usage_audit=True
|
|
instance_usage_audit_period=hour
|
|
notify_on_state_change=vm_and_task_state
|
|
notification_driver=nova.openstack.common.notifier.rpc_notifier
|
|
notification_driver=ceilometer.compute.nova_notifier
|
|
{{/ceilometer.compute_agent}}
|
|
|
|
{{#nova.compute_hostname}}
|
|
# Override the service hostname - used for the seed node where no metadata
|
|
# source is supplying hostnames - see seed-stack-config's config.json.
|
|
host={{nova.compute_hostname}}
|
|
{{/nova.compute_hostname}}
|
|
|
|
{{#nova.tuning}}
|
|
ram_allocation_ratio = {{ram_allocation_ratio}}
|
|
reserved_host_memory_mb = {{reserved_host_memory_mb}}
|
|
{{/nova.tuning}}
|
|
|
|
{{#nova.baremetal}}
|
|
scheduler_host_manager = nova.scheduler.baremetal_host_manager.BaremetalHostManager
|
|
{{/nova.baremetal}}
|
|
|
|
{{#ironic}}
|
|
scheduler_host_manager = ironic.nova.scheduler.ironic_host_manager.IronicHostManager
|
|
{{/ironic}}
|
|
|
|
# TODO : remove this, we should be able to support the default
|
|
# workaround for bug 1293782
|
|
vif_plugging_is_fatal=False
|
|
vif_plugging_timeout=30
|
|
|
|
[database]
|
|
connection={{nova.db}}
|
|
|
|
{{#nova.baremetal}}
|
|
[baremetal]
|
|
sql_connection = {{db}}
|
|
tftp_root = /tftpboot
|
|
flavor_extra_specs = cpu_arch:{{arch}}
|
|
|
|
driver = nova.virt.baremetal.pxe.PXE
|
|
pxe_network_config=True
|
|
pxe_deploy_timeout={{pxe_deploy_timeout}}
|
|
power_manager = {{power_manager}}
|
|
{{#virtual_power}}
|
|
virtual_power_host_user={{user}}
|
|
virtual_power_host_key=/mnt/state/var/lib/nova/virtual-power-key
|
|
virtual_power_ssh_host={{ssh_host}}
|
|
virtual_power_type={{type}}
|
|
{{/virtual_power}}
|
|
{{/nova.baremetal}}
|
|
|
|
[osapi_v3]
|
|
enabled = True
|
|
|
|
[keystone_authtoken]
|
|
auth_host = {{keystone.host}}
|
|
auth_port = 35357
|
|
admin_password = {{nova.service-password}}
|
|
auth_protocol = http
|
|
admin_tenant_name = service
|
|
admin_user = nova
|
|
signing_dir = /tmp/keystone-signing-nova
|
|
auth_uri = http://{{keystone.host}}:5000/v2.0
|
|
|
|
{{#ironic}}
|
|
[ironic]
|
|
admin_username = ironic
|
|
admin_password = {{ironic.service-password}}
|
|
admin_url = http://{{keystone.host}}:35357/v2.0
|
|
admin_tenant_name = service
|
|
{{/ironic}}
|
|
|
|
[libvirt]
|
|
{{#nova.compute_libvirt_type}}
|
|
virt_type={{nova.compute_libvirt_type}}
|
|
{{/nova.compute_libvirt_type}}
|
|
block_migration_flag=VIR_MIGRATE_LIVE,VIR_MIGRATE_TUNNELLED,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_NON_SHARED_INC,VIR_MIGRATE_UNDEFINE_SOURCE
|
|
|
|
{{#nova}}
|
|
{{#config}}
|
|
[{{{section}}}]
|
|
{{#values}}
|
|
{{#comment}}
|
|
# {{{.}}}
|
|
{{/comment}}
|
|
{{#option}}
|
|
{{{option}}}={{{value}}}
|
|
{{/option}}
|
|
{{/values}}
|
|
|
|
{{/config}}
|
|
{{/nova}}
|