Support copying static Vendordata file into Nova API container

Nova provides a mechanism to set static vendordata via a file [1].
This patch provides support in Kolla Ansible for using this
feature.

Arguably this could be part of a generic mechansim for copying
arbitrary config, but:

- It's not clear if there is anything else that would take
  advantage of this
- One size might not fit all

[1] https://docs.openstack.org/nova/latest/configuration/config.html#api.vendordata_jsonfile_path

Change-Id: Id420376d96d0c40415c369ae8dd36e845a781820
This commit is contained in:
Doug Szumski
2021-10-04 17:00:56 +02:00
parent e80b877d26
commit 9af42fcebc
5 changed files with 53 additions and 0 deletions

View File

@@ -41,6 +41,10 @@ track_instance_changes = False
[api]
use_forwarded_for = true
{% if vendordata_file_path is defined %}
vendordata_jsonfile_path = /etc/nova/vendordata.json
{% endif %}
# Super conductor
[conductor]
workers = {{ openstack_service_workers }}