fe88bef95b
Introduce an upgrade_composable_scenario variable to hold the path to the scenario file used in the upgrade command to differentiate with the composable_scenario variable for the path of the scenario file used in deploy command. Remove the deploy_composable_scenario variable that was previously holding a boolean value, which can be inferred from the content of the composable_scenario variable. Reorder the arguments passed to the deploy command so that the default from the docker.yaml environment doesn't overwrite the setting coming from the scenario. Co-Authored-By: Jiří Stránský <jistr@redhat.com> Depends-On: Ie08bbe08530bd48a0ca58667f0704f360e0a4dd7 Change-Id: Iece70e22cd40cb119f2f9eb3c51be7bd4631fade Related-Bug: #1714905
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
- name: Create upgrade repo script for undercloud
|
|
template:
|
|
src: "{{ upgrade_undercloud_repo_script }}"
|
|
dest: "{{ upgrade_working_dir }}/upgrade-undercloud-repo.sh"
|
|
mode: 0744
|
|
|
|
- name: Copy custom heat templates files if provided
|
|
template:
|
|
src: "{{ item.value.src }}"
|
|
dest: "{{ upgrade_working_dir }}/{{ item.value.name }}"
|
|
with_dict: "{{ upgrade_templates }}"
|
|
|
|
# Need to set fact here because tht_dir is used in the templated script
|
|
# in "Create major overcloud upgrade script" task
|
|
- name: set fact for tht_dir
|
|
when: target_upgrade_version in ['ocata']
|
|
set_fact:
|
|
tht_dir: "/usr/share/openstack-tripleo-heat-templates"
|
|
|
|
- name: set the scenario args for composable roles
|
|
set_fact:
|
|
scenario_args: >-
|
|
-e {{ tht_dir }}/ci/environments/{{ upgrade_composable_scenario }}
|
|
when: not upgrade_composable_scenario|trim == ''
|
|
|
|
- name: Create major overcloud upgrade script
|
|
when: major_upgrade|bool
|
|
template:
|
|
src: "{{ major_upgrade_script }}"
|
|
dest: "{{ upgrade_working_dir }}/overcloud-upgrade.sh"
|
|
mode: 0755
|
|
|
|
- name: Create minor overcloud upgrade script
|
|
when: not major_upgrade|bool
|
|
template:
|
|
src: "{{ minor_upgrade_script }}"
|
|
dest: "{{ upgrade_working_dir }}/overcloud-upgrade.sh"
|
|
mode: 0755
|