tasks: Record a venv_tag local fact for distro installations

Distro installations do not deploy virtual environments but they still
need a local venv_tag deployed. The reason for this is because this fact
is used by the integration repo to determine if the keystone software is
the same across all nodes in the keystone_all group so we can safely run
the DB migration.

Change-Id: I9bab11b3c643f2411d78267aa6114081fe76b9ef
This commit is contained in:
Markos Chandras 2018-07-17 09:49:52 +01:00
parent 28982bf37b
commit f2a3f86c9c
2 changed files with 11 additions and 7 deletions

View File

@ -99,6 +99,17 @@
include_tasks: keystone_install_source.yml include_tasks: keystone_install_source.yml
when: keystone_install_method == 'source' when: keystone_install_method == 'source'
# TODO(hwoarang): We need to have a venv_tag local fact deployed since we use it in the
# integration repo to determine if keystone software is the same across all nodes in the
# keystone_all group so we can safely run the DB migration. See
# https://github.com/openstack/openstack-ansible/blob/master/playbooks/os-keystone-install.yml
- name: Record the venv tag deployed
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
section: keystone
option: venv_tag
value: "{{ keystone_venv_tag }}"
- name: Initialise the upgrade facts - name: Initialise the upgrade facts
ini_file: ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact" dest: "/etc/ansible/facts.d/openstack_ansible.fact"

View File

@ -110,10 +110,3 @@
when: keystone_get_venv is changed when: keystone_get_venv is changed
tags: tags:
- skip_ansible_lint - skip_ansible_lint
- name: Record the venv tag deployed
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
section: keystone
option: venv_tag
value: "{{ keystone_venv_tag }}"