2
###############################################################################
4
# Configuration file maintained by Juju. Local changes may be overwritten.
5
{% if restart_trigger -%}
6
# restart trigger: {{ restart_trigger }}
8
###############################################################################
12
dhcpbridge_flagfile=/etc/nova/nova.conf
13
dhcpbridge=/usr/bin/nova-dhcpbridge
15
state_path=/var/lib/nova
16
lock_path=/var/lock/nova
17
force_dhcp_release=True
19
{% if arch == 'aarch64' -%}
20
libvirt_use_virtio_for_bridges=False
21
libvirt_disk_prefix=vd
23
libvirt_use_virtio_for_bridges=True
26
use_syslog = {{ use_syslog }}
27
ec2_private_dns_show_ip=True
28
api_paste_config=/etc/nova/api-paste.ini
29
enabled_apis=ec2,osapi_compute,metadata
30
auth_strategy=keystone
31
compute_driver=libvirt.LibvirtDriver
34
{% include "parts/database" %}
36
{% include "parts/rabbitmq" %}
38
{% if glance_api_servers -%}
39
glance_api_servers = {{ glance_api_servers }}
42
{% if console_vnc_type -%}
45
vnc_keymap = {{ console_keymap }}
46
vncserver_listen = 0.0.0.0
47
vncserver_proxyclient_address = {{ console_listen_addr }}
48
{% if console_access_protocol == 'novnc' or console_access_protocol == 'vnc' -%}
49
novncproxy_base_url = {{ novnc_proxy_address }}
51
{% if console_access_protocol == 'xvpvnc' or console_access_protocol == 'vnc' -%}
52
xvpvncproxy_port = {{ xvpvnc_proxy_port }}
53
xvpvncproxy_host = {{ xvpvnc_proxy_host }}
54
xvpvncproxy_base_url = {{ xvpvnc_proxy_address }}
61
{% if neutron_plugin and neutron_plugin == 'ovs' -%}
62
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
63
{% if neutron_security_groups -%}
64
security_group_api = neutron
65
firewall_driver = nova.virt.firewall.NoopFirewallDriver
69
{% if neutron_plugin and neutron_plugin == 'vsp' -%}
70
network_api_class=nova.network.neutronv2.api.API
71
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
72
neutron_ovs_bridge=alubr0
73
security_group_api=nova
74
firewall_driver = nova.virt.firewall.NoopFirewallDriver
77
{% if neutron_plugin and (neutron_plugin == 'nvp' or neutron_plugin == 'nsx') -%}
78
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtOpenVswitchVirtualPortDriver
79
security_group_api = neutron
80
firewall_driver = nova.virt.firewall.NoopFirewallDriver
83
{% if neutron_plugin and neutron_plugin == 'Calico' -%}
84
security_group_api = neutron
85
firewall_driver = nova.virt.firewall.NoopFirewallDriver
88
{% if network_manager_config -%}
89
{% for key, value in network_manager_config.iteritems() -%}
90
{{ key }} = {{ value }}
94
{% if network_manager == 'neutron' -%}
95
network_api_class = nova.network.neutronv2.api.API
97
network_manager = nova.network.manager.FlatDHCPManager
100
{% if network_device_mtu -%}
101
network_device_mtu = {{ network_device_mtu }}
104
{% if volume_service -%}
105
volume_api_class = nova.volume.cinder.API
108
{% if user_config_flags -%}
109
{% for key, value in user_config_flags.iteritems() -%}
110
{{ key }} = {{ value }}
114
{% if live_migration_uri -%}
115
live_migration_uri = {{ live_migration_uri }}
118
{% if instances_path -%}
119
instances_path = {{ instances_path }}
122
{% if sections and 'DEFAULT' in sections -%}
123
{% for key, value in sections['DEFAULT'] -%}
124
{{ key }} = {{ value }}
128
{% if console_access_protocol == 'spice' -%}
132
html5proxy_base_url = {{ spice_proxy_address }}
133
keymap = {{ console_keymap }}
134
server_listen = 0.0.0.0
135
server_proxyclient_address = {{ console_listen_addr }}
139
{% if libvirt_images_type -%}
140
images_type = {{ libvirt_images_type }}
141
images_rbd_pool = {{ rbd_pool }}
142
images_rbd_ceph_conf = {{ libvirt_rbd_images_ceph_conf }}
143
inject_password=false
148
rbd_pool = {{ rbd_pool }}
149
rbd_user = {{ rbd_user }}
150
rbd_secret_uuid = {{ rbd_secret_uuid }}
152
{% if disk_cachemodes -%}
153
disk_cachemodes = {{ disk_cachemodes }}