Merge "Update "openstack_release" variable to static brach name"

This commit is contained in:
Zuul 2019-09-19 21:21:57 +00:00 committed by Gerrit Code Review
commit 91c68f5da8
7 changed files with 8 additions and 33 deletions

View File

@ -1,8 +1,4 @@
---
- import_playbook: detect-release.yml
vars:
detect_release_hosts: bifrost
- name: Apply role bifrost
hosts: bifrost
roles:

View File

@ -1,16 +0,0 @@
---
- name: Detect openstack_release variable
hosts: "{{ detect_release_hosts }}"
gather_facts: false
tasks:
- name: Get current kolla-ansible version number
local_action: command python -c "import pbr.version; print(pbr.version.VersionInfo('kolla-ansible'))"
register: kolla_ansible_version
changed_when: false
when: openstack_release == "auto"
- name: Set openstack_release variable
set_fact:
openstack_release: "{{ kolla_ansible_version.stdout }}"
when: openstack_release == "auto"
tags: always

View File

@ -475,7 +475,7 @@ admin_protocol: "{{ 'https' if kolla_enable_tls_internal | bool else 'http' }}"
####################
# OpenStack options
####################
openstack_release: "auto"
openstack_release: "master"
openstack_logging_debug: "False"
openstack_region_name: "RegionOne"

View File

@ -1,8 +1,4 @@
---
- import_playbook: detect-release.yml
vars:
detect_release_hosts: mariadb
- name: Backup MariaDB
hosts: mariadb
roles:

View File

@ -1,8 +1,4 @@
---
- import_playbook: detect-release.yml
vars:
detect_release_hosts: mariadb
- name: Recover mariadb
hosts: mariadb
roles:

View File

@ -91,10 +91,6 @@
- enable_zun_{{ enable_zun | bool }}
tags: always
- import_playbook: detect-release.yml
vars:
detect_release_hosts: openstack_release_auto
- name: Apply role prechecks
gather_facts: false
# Apply only when kolla action is 'precheck'.

View File

@ -0,0 +1,7 @@
---
upgrade:
- |
Modifies the default value for ``openstack_release`` from ``auto``
to the name of the release (e.g. ``train``), or ``master`` on the
master branch. The value of ``auto`` will no longer detect the
version of the ``kolla-ansible`` Python package.