~corey.bryant/charms/trusty/nova-compute/use-stable

« back to all changes in this revision

Viewing changes to templates/juno/nova.conf

  • Committer: james.page at ubuntu
  • Date: 2014-10-14 13:56:25 UTC
  • mfrom: (83.1.2 nova-compute)
  • Revision ID: james.page@ubuntu.com-20141014135625-6vsludwouw3n3cl6
[jamespage,t=bjornt,r=gnuoy] Fixup libvirt section data for juno.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# havana
 
2
###############################################################################
 
3
# [ WARNING ]
 
4
# Configuration file maintained by Juju. Local changes may be overwritten.
 
5
{% if restart_trigger -%}
 
6
# restart trigger: {{ restart_trigger }}
 
7
{% endif -%}
 
8
###############################################################################
 
9
[DEFAULT]
 
10
dhcpbridge_flagfile=/etc/nova/nova.conf
 
11
dhcpbridge=/usr/bin/nova-dhcpbridge
 
12
logdir=/var/log/nova
 
13
state_path=/var/lib/nova
 
14
lock_path=/var/lock/nova
 
15
force_dhcp_release=True
 
16
libvirt_use_virtio_for_bridges=True
 
17
verbose=True
 
18
use_syslog = {{ use_syslog }}
 
19
ec2_private_dns_show_ip=True
 
20
api_paste_config=/etc/nova/api-paste.ini
 
21
enabled_apis=ec2,osapi_compute,metadata
 
22
auth_strategy=keystone
 
23
compute_driver=libvirt.LibvirtDriver
 
24
 
 
25
{% include "parts/database" %}
 
26
 
 
27
{% include "parts/rabbitmq" %}
 
28
 
 
29
{% if glance_api_servers -%}
 
30
glance_api_servers = {{ glance_api_servers }}
 
31
{% endif -%}
 
32
 
 
33
{% if console_vnc_type -%}
 
34
vnc_enabled = True
 
35
novnc_enabled = True
 
36
vnc_keymap = {{ console_keymap }}
 
37
vncserver_listen = 0.0.0.0
 
38
vncserver_proxyclient_address = {{ console_listen_addr }}
 
39
{% if console_access_protocol == 'novnc' or console_access_protocol == 'vnc' -%}
 
40
novncproxy_base_url = {{ novnc_proxy_address }}
 
41
{% endif -%}
 
42
{% if console_access_protocol == 'xvpvnc' or console_access_protocol == 'vnc' -%}
 
43
xvpvncproxy_port = {{ xvpvnc_proxy_port }}
 
44
xvpvncproxy_host = {{ xvpvnc_proxy_host }}
 
45
xvpvncproxy_base_url = {{ xvpvnc_proxy_address }}
 
46
{% endif -%}
 
47
{% else -%}
 
48
vnc_enabled = False
 
49
novnc_enabled = False
 
50
{% endif -%}
 
51
 
 
52
{% if neutron_plugin and neutron_plugin == 'ovs' -%}
 
53
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
 
54
{% if neutron_security_groups -%}
 
55
security_group_api = neutron
 
56
firewall_driver = nova.virt.firewall.NoopFirewallDriver
 
57
{% endif -%}
 
58
{% endif -%}
 
59
 
 
60
{% if neutron_plugin and (neutron_plugin == 'nvp' or neutron_plugin == 'nsx') -%}
 
61
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtOpenVswitchVirtualPortDriver
 
62
security_group_api = neutron
 
63
firewall_driver = nova.virt.firewall.NoopFirewallDriver
 
64
{% endif -%}
 
65
 
 
66
{% if network_manager_config -%}
 
67
{% for key, value in network_manager_config.iteritems() -%}
 
68
{{ key }} = {{ value }}
 
69
{% endfor -%}
 
70
{% endif -%}
 
71
 
 
72
{% if network_manager == 'neutron' -%}
 
73
network_api_class = nova.network.neutronv2.api.API
 
74
{% else -%}
 
75
network_manager = nova.network.manager.FlatDHCPManager
 
76
{% endif -%}
 
77
 
 
78
{% if volume_service -%}
 
79
volume_api_class = nova.volume.cinder.API
 
80
{% endif -%}
 
81
 
 
82
{% if user_config_flags -%}
 
83
{% for key, value in user_config_flags.iteritems() -%}
 
84
{{ key }} = {{ value }}
 
85
{% endfor -%}
 
86
{% endif -%}
 
87
 
 
88
{% if instances_path -%}
 
89
instances_path = {{ instances_path }}
 
90
{% endif -%}
 
91
 
 
92
{% if sections and 'DEFAULT' in sections -%}
 
93
{% for key, value in sections['DEFAULT'] -%}
 
94
{{ key }} = {{ value }}
 
95
{% endfor -%}
 
96
{% endif -%}
 
97
 
 
98
{% if console_access_protocol == 'spice' -%}
 
99
[spice]
 
100
agent_enabled = True
 
101
enabled = True
 
102
html5proxy_base_url = {{ spice_proxy_address }}
 
103
keymap = {{ console_keymap }}
 
104
server_listen = 0.0.0.0
 
105
server_proxyclient_address = {{ console_listen_addr }}
 
106
{% endif -%}
 
107
 
 
108
[libvirt]
 
109
{% if rbd_pool -%}
 
110
rbd_pool = {{ rbd_pool }}
 
111
rbd_user = {{ rbd_user }}
 
112
rbd_secret_uuid = {{ rbd_secret_uuid }}
 
113
{% endif -%}
 
114
{% if live_migration_uri -%}
 
115
live_migration_uri = {{ live_migration_uri }}
 
116
{% endif -%}
 
117