~gnuoy/charms/trusty/nova-compute/1453940-stable

« back to all changes in this revision

Viewing changes to templates/icehouse/nova.conf

  • Committer: Liam Young
  • Date: 2014-09-09 09:47:14 UTC
  • mto: This revision was merged to the branch mainline in revision 117.
  • Revision ID: liam.young@canonical.com-20140909094714-17ewomeso8kdwtxt
Added 0mq support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# icehouse
 
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
{% include "parts/zeromq" %}
 
30
 
 
31
{% if glance_api_servers -%}
 
32
glance_api_servers = {{ glance_api_servers }}
 
33
{% endif -%}
 
34
 
 
35
{% if rbd_pool -%}
 
36
rbd_pool = {{ rbd_pool }}
 
37
rbd_user = {{ rbd_user }}
 
38
rbd_secret_uuid = {{ rbd_secret_uuid }}
 
39
{% endif -%}
 
40
 
 
41
{% if console_vnc_type -%}
 
42
vnc_enabled = True
 
43
novnc_enabled = True
 
44
vnc_keymap = {{ console_keymap }}
 
45
vncserver_listen = 0.0.0.0
 
46
vncserver_proxyclient_address = {{ console_listen_addr }}
 
47
{% if console_access_protocol == 'novnc' or console_access_protocol == 'vnc' -%}
 
48
novncproxy_base_url = {{ novnc_proxy_address }}
 
49
{% endif -%}
 
50
{% if console_access_protocol == 'xvpvnc' or console_access_protocol == 'vnc' -%}
 
51
xvpvncproxy_port = {{ xvpvnc_proxy_port }}
 
52
xvpvncproxy_host = {{ xvpvnc_proxy_host }}
 
53
xvpvncproxy_base_url = {{ xvpvnc_proxy_address }}
 
54
{% endif -%}
 
55
{% else -%}
 
56
vnc_enabled = False
 
57
novnc_enabled = False
 
58
{% endif -%}
 
59
 
 
60
{% if neutron_plugin and neutron_plugin == 'ovs' -%}
 
61
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
 
62
{% if neutron_security_groups -%}
 
63
security_group_api = neutron
 
64
firewall_driver = nova.virt.firewall.NoopFirewallDriver
 
65
{% endif -%}
 
66
{% endif -%}
 
67
 
 
68
{% if neutron_plugin and (neutron_plugin == 'nvp' or neutron_plugin == 'nsx') -%}
 
69
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtOpenVswitchVirtualPortDriver
 
70
security_group_api = neutron
 
71
firewall_driver = nova.virt.firewall.NoopFirewallDriver
 
72
{% endif -%}
 
73
 
 
74
{% if network_manager_config -%}
 
75
{% for key, value in network_manager_config.iteritems() -%}
 
76
{{ key }} = {{ value }}
 
77
{% endfor -%}
 
78
{% endif -%}
 
79
 
 
80
{% if network_manager == 'neutron' -%}
 
81
network_api_class = nova.network.neutronv2.api.API
 
82
{% else -%}
 
83
network_manager = nova.network.manager.FlatDHCPManager
 
84
{% endif -%}
 
85
 
 
86
{% if volume_service -%}
 
87
volume_api_class = nova.volume.cinder.API
 
88
{% endif -%}
 
89
 
 
90
{% if user_config_flags -%}
 
91
{% for key, value in user_config_flags.iteritems() -%}
 
92
{{ key }} = {{ value }}
 
93
{% endfor -%}
 
94
{% endif -%}
 
95
 
 
96
{% if live_migration_uri -%}
 
97
live_migration_uri = {{ live_migration_uri }}
 
98
{% endif -%}
 
99
 
 
100
{% if instances_path -%}
 
101
instances_path = {{ instances_path }}
 
102
{% endif -%}
 
103
 
 
104
{% if sections and 'DEFAULT' in sections -%}
 
105
{% for key, value in sections['DEFAULT'] -%}
 
106
{{ key }} = {{ value }}
 
107
{% endfor -%}
 
108
{% endif -%}
 
109
 
 
110
{% if console_access_protocol == 'spice' -%}
 
111
[spice]
 
112
agent_enabled = True
 
113
enabled = True
 
114
html5proxy_base_url = {{ spice_proxy_address }}
 
115
keymap = {{ console_keymap }}
 
116
server_listen = 0.0.0.0
 
117
server_proxyclient_address = {{ console_listen_addr }}
 
118
{% endif -%}