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