Merge "Don't overwrite tht_dir for upgrades to master"
This commit is contained in:
commit
71bfc3a505
@ -28,6 +28,18 @@ pushd {{overcloud_templates_path}}
|
||||
git fetch {{ overcloud_templates_repo }} {{ overcloud_templates_refspec }} && git checkout FETCH_HEAD
|
||||
popd
|
||||
{% endif %}
|
||||
|
||||
{% if deploy_composable_scenario|bool %}
|
||||
## * If desired composable scenario isn't present in the checked-out
|
||||
## code, but is present in RPM, copy the scenario from RPM location.
|
||||
## ::
|
||||
if [ ! -e "{{ overcloud_templates_path }}/ci/environments/{{ composable_scenario }}" \
|
||||
-a -e "/usr/share/openstack-tripleo-heat-templates/ci/environments/{{ composable_scenario }}" ]; then
|
||||
cp "/usr/share/openstack-tripleo-heat-templates/ci/environments/{{ composable_scenario }}" \
|
||||
"{{ overcloud_templates_path }}/ci/environments/{{ composable_scenario }}"
|
||||
fi
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if download_overcloud_templates_rpm is defined and overcloud_templates_path is defined %}
|
||||
|
@ -14,7 +14,7 @@
|
||||
# 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', 'master']
|
||||
when: target_upgrade_version in ['ocata']
|
||||
set_fact:
|
||||
tht_dir: "/usr/share/openstack-tripleo-heat-templates"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user