Add venv_tag local fact
In order to make it easier to detect the currently deployed venv for a service, and therefore allow smarter decisions for things like upgrading, we implement the venv tag as a local fact. The file used to store facts will be the same for all OpenStack services, with each service using its own section. Example: "ansible_local": { "openstack_ansible": { "ironic": { "venv_tag": "14.2.1" } } } Change-Id: I17f67d01c1711d27dab9dd835585b1b0a9a33835
This commit is contained in:
parent
84e1a104c0
commit
3a1ce7a37c
@ -111,3 +111,10 @@
|
|||||||
command: >
|
command: >
|
||||||
virtualenv-tools --update-path=auto --reinitialize {{ ironic_bin | dirname }}
|
virtualenv-tools --update-path=auto --reinitialize {{ ironic_bin | dirname }}
|
||||||
when: ironic_get_venv | changed
|
when: ironic_get_venv | changed
|
||||||
|
|
||||||
|
- name: Record the venv tag deployed
|
||||||
|
ini_file:
|
||||||
|
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||||
|
section: ironic
|
||||||
|
option: venv_tag
|
||||||
|
value: "{{ ironic_venv_tag }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user