~freyes/+junk/lp1387390

« back to all changes in this revision

Viewing changes to templates/icehouse/nova.conf

  • Committer: Corey Bryant
  • Date: 2015-04-15 14:21:42 UTC
  • mfrom: (121 nova-compute)
  • mto: This revision was merged to the branch mainline in revision 123.
  • Revision ID: corey.bryant@canonical.com-20150415142142-alq9gvj11khg6kxg
Deploy from source

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
verbose={{ verbose }}
 
11
debug={{ debug }}
 
12
dhcpbridge_flagfile=/etc/nova/nova.conf
 
13
dhcpbridge=/usr/bin/nova-dhcpbridge
 
14
logdir=/var/log/nova
 
15
state_path=/var/lib/nova
 
16
lock_path=/var/lock/nova
 
17
force_dhcp_release=True
 
18
 
 
19
{% if arch == 'aarch64' -%}
 
20
libvirt_use_virtio_for_bridges=False
 
21
libvirt_disk_prefix=vd
 
22
{% else -%}
 
23
libvirt_use_virtio_for_bridges=True
 
24
{% endif -%}
 
25
 
 
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
 
32
my_ip = {{ host_ip }}
 
33
 
 
34
{% include "parts/database" %}
 
35
 
 
36
{% include "parts/rabbitmq" %}
 
37
 
 
38
{% if glance_api_servers -%}
 
39
glance_api_servers = {{ glance_api_servers }}
 
40
{% endif -%}
 
41
 
 
42
{% if console_vnc_type -%}
 
43
vnc_enabled = True
 
44
novnc_enabled = True
 
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 }}
 
50
{% endif -%}
 
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 }}
 
55
{% endif -%}
 
56
{% else -%}
 
57
vnc_enabled = False
 
58
novnc_enabled = False
 
59
{% endif -%}
 
60
 
 
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
 
66
{% endif -%}
 
67
{% endif -%}
 
68
 
 
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
 
75
{% endif -%}
 
76
 
 
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
 
81
{% endif -%}
 
82
 
 
83
{% if neutron_plugin and neutron_plugin == 'Calico' -%}
 
84
security_group_api = neutron
 
85
firewall_driver = nova.virt.firewall.NoopFirewallDriver
 
86
{% endif -%}
 
87
 
 
88
{% if network_manager_config -%}
 
89
{% for key, value in network_manager_config.iteritems() -%}
 
90
{{ key }} = {{ value }}
 
91
{% endfor -%}
 
92
{% endif -%}
 
93
 
 
94
{% if network_manager == 'neutron' -%}
 
95
network_api_class = nova.network.neutronv2.api.API
 
96
{% else -%}
 
97
network_manager = nova.network.manager.FlatDHCPManager
 
98
{% endif -%}
 
99
 
 
100
{% if network_device_mtu -%}
 
101
network_device_mtu = {{ network_device_mtu }}
 
102
{% endif -%}
 
103
 
 
104
{% if volume_service -%}
 
105
volume_api_class = nova.volume.cinder.API
 
106
{% endif -%}
 
107
 
 
108
{% if user_config_flags -%}
 
109
{% for key, value in user_config_flags.iteritems() -%}
 
110
{{ key }} = {{ value }}
 
111
{% endfor -%}
 
112
{% endif -%}
 
113
 
 
114
{% if live_migration_uri -%}
 
115
live_migration_uri = {{ live_migration_uri }}
 
116
{% endif -%}
 
117
 
 
118
{% if instances_path -%}
 
119
instances_path = {{ instances_path }}
 
120
{% endif -%}
 
121
 
 
122
{% if sections and 'DEFAULT' in sections -%}
 
123
{% for key, value in sections['DEFAULT'] -%}
 
124
{{ key }} = {{ value }}
 
125
{% endfor -%}
 
126
{% endif -%}
 
127
 
 
128
{% if console_access_protocol == 'spice' -%}
 
129
[spice]
 
130
agent_enabled = True
 
131
enabled = True
 
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 }}
 
136
{% endif -%}
 
137
 
 
138
[libvirt]
 
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
 
144
inject_key=false
 
145
inject_partition=-2
 
146
{% endif -%}
 
147
{% if rbd_pool -%}
 
148
rbd_pool = {{ rbd_pool }}
 
149
rbd_user = {{ rbd_user }}
 
150
rbd_secret_uuid = {{ rbd_secret_uuid }}
 
151
{% endif -%}
 
152
{% if disk_cachemodes -%}
 
153
disk_cachemodes = {{ disk_cachemodes }}
 
154
{% endif -%}
 
155