Skip to content
Snippets Groups Projects
Commit a16d7871 authored by Paul Bourke's avatar Paul Bourke
Browse files

Allow operators to customise Nova vendor info

Nova allows customisation of various metadata passed through to VMs via
a 'release' file[0]. Allow operators to make use of this.

[0] https://github.com/openstack/nova/blob/master/etc/nova/release.sample

Change-Id: I71569314c8e64320f8ffad79b9273f4d6d903bb6
parent e59867e9
No related branches found
No related tags found
No related merge requests found
...@@ -287,6 +287,7 @@ ...@@ -287,6 +287,7 @@
or nova_conf.changed | bool or nova_conf.changed | bool
or policy_overwriting.changed | bool or policy_overwriting.changed | bool
or vcenter_ca_file | bool or vcenter_ca_file | bool
or nova_compute_release_file | bool
or nova_compute_container.changed | bool or nova_compute_container.changed | bool
- name: Restart nova-compute-ironic container - name: Restart nova-compute-ironic container
......
...@@ -178,6 +178,25 @@ ...@@ -178,6 +178,25 @@
notify: notify:
- Restart nova-compute container - Restart nova-compute container
- name: Copying 'release' file for nova_compute
vars:
service: "{{ nova_services['nova-compute'] }}"
copy:
src: "{{ item }}"
dest: "{{ node_config_directory }}/nova-compute/release"
with_first_found:
- files:
- "{{ node_custom_config }}/nova_compute/{{ inventory_hostname }}/release"
- "{{ node_custom_config }}/nova_compute/release"
- "{{ node_custom_config }}/nova/release"
skip: true
register: nova_compute_release_file
when:
- inventory_hostname in groups[service.group]
- service.enabled | bool
notify:
- Restart nova-compute container
- name: Copying over existing policy file - name: Copying over existing policy file
become: true become: true
vars: vars:
......
...@@ -24,7 +24,14 @@ ...@@ -24,7 +24,14 @@
"dest": "/etc/nova/vmware_ca", "dest": "/etc/nova/vmware_ca",
"owner": "nova", "owner": "nova",
"perm": "0600" "perm": "0600"
}{% endif %} }{% endif %},
{
"source": "{{ container_config_directory }}/release",
"dest": "/etc/nova/release",
"owner": "nova",
"perm": "0600",
"optional": true
}
], ],
"permissions": [ "permissions": [
{ {
......
---
features:
- |
You can customise vendor info that is used through out Nova via the
'release' file. To do this place a file called 'release' in one of the
following locations:
/etc/kolla/config/nova/release
/etc/kolla/config/nova_compute/release
/etc/kolla/config/nova_compute/{{ inventory_hostname }}/release
An example of the file can be seen at
https://github.com/openstack/nova/blob/master/etc/nova/release.sample
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment