30 lines
1.2 KiB
Django/Jinja
30 lines
1.2 KiB
Django/Jinja
parameter_defaults:
|
|
UpgradeInitCommand: |
|
|
set -e
|
|
pushd /etc/yum.repos.d/
|
|
rm -rf delorean*
|
|
|
|
{% if target_upgrade_version == 'master' %}
|
|
curl -O -L https://trunk.rdoproject.org/centos7/current/delorean.repo
|
|
curl -O -L https://trunk.rdoproject.org/centos7/delorean-deps.repo
|
|
{% else %}
|
|
{% if upgrade_delorean_hash == 'current-passed-ci' %}
|
|
curl -O -L https://trunk.rdoproject.org/centos7-{{ target_upgrade_version }}/current-passed-ci/delorean.repo
|
|
{% else %}
|
|
curl -O -L https://trunk.rdoproject.org/centos7-{{ target_upgrade_version }}/current/delorean.repo
|
|
{% endif %}
|
|
curl -O -L https://trunk.rdoproject.org/centos7-{{ target_upgrade_version }}/delorean-deps.repo
|
|
{% endif %}
|
|
|
|
popd
|
|
yum clean all
|
|
{% if target_upgrade_version != 'newton' %}
|
|
yum install -y python-heat-agent-*
|
|
yum install -y ansible-pacemaker
|
|
yum update -y ansible
|
|
# update ansible.cfg
|
|
# FIXME: Workaround for bigswitch vendor pluging
|
|
# we need to remove those package which is broken with Ocata neutron python code
|
|
yum remove -y python-UcsSdk openstack-neutron-bigswitch-agent python-networking-bigswitch openstack-neutron-bigswitch-lldp python-networking-odl
|
|
{% endif %}
|