blob: c50995162b24c16603f92809821e8240e3a93253 [file] [log] [blame]
Filip Pytloun4a72d792015-10-06 16:28:32 +02001{%- from "nova/map.jinja" import controller with context %}
2[DEFAULT]
3logdir = /var/log/nova
4verbose = True
5{%- if controller.debug %}
6debug = True
7{%- else %}
8debug = False
9{%- endif %}
10state_path = /var/lib/nova
11lock_path = /var/lib/nova/tmp
12volumes_dir = /etc/nova/volumes
13dhcpbridge = /usr/bin/nova-dhcpbridge
14dhcpbridge_flagfile = /etc/nova/nova.conf
Filip Pytloun7c874e62015-11-12 10:10:39 +010015dhcp_domain = {{ controller.dhcp_domain }}
Filip Pytloun4a72d792015-10-06 16:28:32 +020016force_dhcp_release = True
17injected_network_template = /usr/share/nova/interfaces.template
18libvirt_nonblocking = True
19libvirt_use_virtio_for_bridges=True
20libvirt_inject_partition = -1
21vif_plugging_is_fatal = False
22vif_plugging_timeout = 0
Lachlan Evensonb72de502016-01-20 15:34:04 -080023cpu_allocation_ratio = {{ controller.cpu_allocation_ratio }}
24ram_allocation_ratio = {{ controller.ram_allocation_ratio }}
Jiri Konecny9344a372016-03-21 19:25:48 +010025disk_allocation_ratio = {{ controller.disk_allocation_ratio }}
Lachlan Evensonb72de502016-01-20 15:34:04 -080026scheduler_default_filters = {{ controller.scheduler_default_filters }}
Filip Pytloun4a72d792015-10-06 16:28:32 +020027
28allow_resize_to_same_host = True
29
30logdir=/var/log/nova
31iscsi_helper=tgtadm
32connection_type=libvirt
33root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
34ec2_private_dns_show_ip=True
35api_paste_config=/etc/nova/api-paste.ini
36volumes_path=/var/lib/nova/volumes
37
38sql_connection = {{ controller.database.engine }}://{{ controller.database.user }}:{{ controller.database.password }}@{{ controller.database.host }}/{{ controller.database.name }}
39
40network_api_class = nova.network.neutronv2.api.API
41
42compute_driver = libvirt.LibvirtDriver
43libvirt_type=kvm
44rootwrap_config = /etc/nova/rootwrap.conf
45auth_strategy = keystone
46firewall_driver=nova.virt.firewall.NoopFirewallDriver
47enabled_apis = ec2,osapi_compute,metadata
48
49my_ip={{ controller.bind.private_address }}
50
51
52
53neutron_auth_strategy = keystone
Filip Pytloune863a3f2016-01-14 11:55:43 +010054neutron_admin_auth_url = http://{{ controller.identity.host }}:35357/v{% if controller.identity.get('version', 2) == 2 %}2.0{% else %}3{% endif %}
Filip Pytloun4a72d792015-10-06 16:28:32 +020055{% if pillar.neutron is defined %}
56neutron_admin_password={{ pillar.neutron.server.identity.password }}
57neutron_admin_tenant_name={{ pillar.neutron.server.identity.tenant }}
58neutron_admin_username={{ pillar.neutron.server.identity.user }}
Jakub Pavlik79021262016-03-09 14:53:53 +010059neutron_region_name={{ pillar.neutron.server.identity.region }}
Filip Pytloun4a72d792015-10-06 16:28:32 +020060{%- else %}
61neutron_admin_password={{ controller.network.password }}
62neutron_admin_tenant_name={{ controller.network.tenant }}
63neutron_admin_username={{ controller.network.user }}
Jakub Pavlik79021262016-03-09 14:53:53 +010064neutron_region_name={{ controller.network.region }}
Filip Pytloun4a72d792015-10-06 16:28:32 +020065{%- endif %}
66neutron_url=http://{{ controller.network.host }}:{{ controller.network.port }}
67
68
69linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
70firewall_driver = nova.virt.firewall.NoopFirewallDriver
71security_group_api = neutron
72
73rpc_backend = nova.rpc.impl_kombu
74start_guests_on_host_boot=truembu
75
76{%- if controller.cache is defined %}
77memcached_servers={%- for member in controller.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
78{%- endif %}
79
80
81volume_api_class=nova.volume.cinder.API
82ec2_listen={{ controller.bind.private_address }}
83osapi_volume_listen={{ controller.bind.private_address }}
84osapi_compute_listen={{ controller.bind.private_address }}
85metadata_listen={{ controller.bind.private_address }}
86glance_host = {{ controller.glance.host }}
87osapi_compute_workers=8
88
89#NoVNC
90vnc_enabled=true
91{%- if pillar.nova.compute is defined %}
92vncserver_listen={{ controller.bind.private_address }}
93vncserver_proxyclient_address={{ controller.bind.private_address }}
94{%- else %}
95vncserver_listen=0.0.0.0
96{%- endif %}
97novncproxy_base_url={{ controller.vncproxy_url }}/vnc_auto.html
98novncproxy_port={{ controller.bind.get('vncproxy_port', '6080') }}
99
100{%- if controller.get('networking', 'default') != "contrail" %}
101neutron_metadata_proxy_shared_secret={{ controller.metadata.password }}
102{%- endif %}
103
104allow_resize_to_same_host=True
105start_guests_on_host_boot=true
106
107rpc_cast_timeout = 30
108rpc_conn_pool_size = 300
109rpc_response_timeout = 3600
110rpc_thread_pool_size = 70
111report_interval = 5
112
113block_device_allocate_retries=600
114block_device_allocate_retries_interval=10
115
116[oslo_concurrency]
117
118lock_path = /var/lib/nova/tmp
119
120[oslo_messaging_rabbit]
121rabbit_host = {{ controller.message_queue.host }}
122rabbit_port = {{ controller.message_queue.port }}
123rabbit_hosts={{ controller.message_queue.host }}:{{ controller.message_queue.port }}
124rabbit_userid = {{ controller.message_queue.user }}
125rabbit_password = {{ controller.message_queue.password }}
126rabbit_virtual_host = {{ controller.message_queue.virtual_host }}
127
128rabbit_retry_interval = 1
129rabbit_retry_backoff = 2
130
Filip Pytloune863a3f2016-01-14 11:55:43 +0100131{%- if controller.identity.get('version', 2) == 2 %}
132
Filip Pytloun4a72d792015-10-06 16:28:32 +0200133[keystone_authtoken]
134signing_dirname=/tmp/keystone-signing-nova
135signing_dir=/tmp/keystone-signing-nova
136admin_tenant_name = {{ controller.identity.tenant }}
137admin_user = {{ controller.identity.user }}
138admin_password = {{ controller.identity.password }}
139auth_host = {{ controller.identity.host }}
140auth_port = {{ controller.identity.port }}
141auth_protocol=http
142auth_uri=http://{{ controller.identity.host }}:5000
143
Filip Pytloune863a3f2016-01-14 11:55:43 +0100144{%- else %}
145
146[keystone_authtoken]
147signing_dirname=/tmp/keystone-signing-nova
148identity_uri = http://{{ controller.identity.host }}:35357/v3
149revocation_cache_time = 10
150auth_section = generic_password
151
152[generic_password]
153auth_plugin = password
154user_domain_id = {{ controller.identity.get('domain', 'default') }}
155project_domain_id = {{ controller.identity.get('domain', 'default') }}
156project_name = {{ controller.identity.tenant }}
157username = {{ controller.identity.user }}
158password = {{ controller.identity.password }}
159auth_uri=http://{{ controller.identity.host }}:5000/v3
160auth_url=http://{{ controller.identity.host }}:35357/v3
161
162{%- endif %}
163
Filip Pytloun4a72d792015-10-06 16:28:32 +0200164[conductor]
165workers = 8
166
167[database]
168idle_timeout = 180
169min_pool_size = 100
170max_pool_size = 700
171max_overflow = 100
172retry_interval = 5
173max_retries = -1
174db_max_retries = 3
175db_retry_interval = 1
176connection_debug = 10
177pool_timeout = 120
178connection = {{ controller.database.engine }}://{{ controller.database.user }}:{{ controller.database.password }}@{{ controller.database.host }}/{{ controller.database.name }}
179
180[glance]
181
182host = {{ controller.glance.host }}
183
184[neutron]
185auth_strategy = keystone
Filip Pytloune863a3f2016-01-14 11:55:43 +0100186admin_auth_url = http://{{ controller.identity.host }}:35357/v{% if controller.identity.get('version', 2) == 2 %}2.0{% else %}3{% endif %}
Filip Pytloun4a72d792015-10-06 16:28:32 +0200187{% if pillar.neutron is defined %}
188admin_password={{ pillar.neutron.server.identity.password }}
189admin_tenant_name={{ pillar.neutron.server.identity.tenant }}
190admin_username={{ pillar.neutron.server.identity.user }}
Jakub Pavlik79021262016-03-09 14:53:53 +0100191region_name= {{ pillar.neutron.server.identity.region }}
Filip Pytloun4a72d792015-10-06 16:28:32 +0200192{%- else %}
193admin_password={{ controller.network.password }}
194admin_tenant_name={{ controller.network.tenant }}
195admin_username={{ controller.network.user }}
Jakub Pavlik79021262016-03-09 14:53:53 +0100196region_name= {{ controller.network.region }}
Filip Pytloun4a72d792015-10-06 16:28:32 +0200197{%- endif %}
198url=http://{{ controller.network.host }}:{{ controller.network.port }}
199
Jakub Pavlik0d835a92015-10-19 17:58:32 +0200200service_metadata_proxy=True
201
202[cinder]
Jakub Pavlik79021262016-03-09 14:53:53 +0100203os_region_name = {{ controller.identity.region }}