File tree Expand file tree Collapse file tree 5 files changed +47
-0
lines changed
doc/source/reference/compute Expand file tree Collapse file tree 5 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 31
31
when :
32
32
- nova_policy.results
33
33
34
+ - name : Check for vendordata file
35
+ stat :
36
+ path : " {{ node_custom_config }}/nova/vendordata.json"
37
+ delegate_to : localhost
38
+ run_once : True
39
+ register : vendordata_file
40
+
34
41
- include_tasks : copy-certs.yml
35
42
when :
36
43
- kolla_copy_ca_into_containers | bool or nova_enable_tls_backend | bool
94
101
- nova_services["nova-api"].enabled | bool
95
102
notify :
96
103
- " Restart nova-api container"
104
+
105
+ - name : Copying over vendordata file
106
+ vars :
107
+ service : " {{ nova_services['nova-api'] }}"
108
+ copy :
109
+ src : " {{ vendordata_file.stat.path }}"
110
+ dest : " {{ node_config_directory }}/nova-api/vendordata.json"
111
+ mode : " 0660"
112
+ become : True
113
+ when :
114
+ - vendordata_file.stat.path is defined
115
+ - inventory_hostname in groups[service['group']]
116
+ - service.enabled | bool
117
+ notify :
118
+ - " Restart nova-api container"
Original file line number Diff line number Diff line change 32
32
"dest": "/etc/nova/certs/nova-key.pem",
33
33
"owner": "nova",
34
34
"perm": "0600"
35
+ }{% endif %}{% if vendordata_file .stat .path is defined %} ,
36
+ {
37
+ "source": "{{ container_config_directory }}/vendordata.json",
38
+ "dest": "/etc/nova/vendordata.json",
39
+ "owner": "nova",
40
+ "perm": "0600"
35
41
}{% endif %}
36
42
],
37
43
"permissions": [
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ track_instance_changes = False
38
38
[api]
39
39
use_forwarded_for = true
40
40
41
+ {% if vendordata_file .stat .path is defined %}
42
+ vendordata_jsonfile_path = /etc/nova/vendordata.json
43
+ {% endif %}
44
+
41
45
# Super conductor
42
46
[conductor]
43
47
workers = {{ openstack_service_workers }}
Original file line number Diff line number Diff line change 56
56
57
57
Information on using Nova Cells V2 to scale out can be found in
58
58
:doc: `nova-cells-guide `.
59
+
60
+ Vendordata
61
+ ==========
62
+
63
+ Nova supports passing deployer provided data to instances using a
64
+ concept known as Vendordata. If a Vendordata file is located in the
65
+ following path within the Kolla configuration, Kolla will
66
+ automatically use it when the Nova service is deployed or
67
+ reconfigured: ``/etc/kolla/config/nova/vendordata.json ``.
Original file line number Diff line number Diff line change
1
+ ---
2
+ features :
3
+ - |
4
+ Support for configuring a Vendordata file for Nova has been
5
+ added. This allows users to pass through arbitrary data to
6
+ instances.
You can’t perform that action at this time.
0 commit comments