b355ea0473
Using vendor metadata helps alleviate the need to spin custom images for things like package mirrors, timezones, or network proxies. Adds new config option 'vendor-data' which takes a JSON formated string to be used as static vendor metadata. Adds new config option 'vendor-data-url' which takes a URL which serves dynamic JSON formatted vendor metadata. Adds new NovaMetadataContext class which writes /etc/nova/vendor_data.json and enables it via nova.conf. Closes-Bug: 1777714 Change-Id: I1d70804e59d42b0651a462c81e01d9c95626f27d
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# mitaka
|
|
###############################################################################
|
|
# [ WARNING ]
|
|
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
###############################################################################
|
|
[DEFAULT]
|
|
logdir=/var/log/nova
|
|
state_path=/var/lib/nova
|
|
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
|
|
debug = {{ debug }}
|
|
verbose= {{ verbose }}
|
|
use_syslog = {{ use_syslog }}
|
|
api_paste_config=/etc/nova/api-paste.ini
|
|
enabled_apis=metadata
|
|
multi_host=True
|
|
# Access to neutron API services
|
|
network_api_class=nova.network.neutronv2.api.API
|
|
use_neutron = True
|
|
metadata_workers = {{ workers }}
|
|
|
|
{% if vendor_data -%}
|
|
vendordata_driver = nova.api.metadata.vendordata_json.JsonFileVendorData
|
|
vendordata_jsonfile_path = /etc/nova/vendor_data.json
|
|
{% endif -%}
|
|
|
|
[neutron]
|
|
url={{ quantum_url }}
|
|
auth_url={{ auth_protocol }}://{{ keystone_host }}:{{ auth_port }}
|
|
auth_type=password
|
|
project_domain_name=default
|
|
user_domain_name=default
|
|
region={{ region }}
|
|
project_name={{ service_tenant }}
|
|
username={{ service_username }}
|
|
password={{ service_password }}
|
|
service_metadata_proxy=True
|
|
metadata_proxy_shared_secret={{ shared_secret }}
|
|
|
|
{% include "section-rabbitmq-oslo" %}
|
|
|
|
[oslo_concurrency]
|
|
lock_path=/var/lock/nova
|