2018-07-10 14:38:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -o xtrace
|
|
|
|
set -o errexit
|
|
|
|
|
|
|
|
# Enable unbuffered output for Ansible in Jenkins.
|
|
|
|
export PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
|
|
|
|
|
function upgrade {
|
|
|
|
RAW_INVENTORY=/etc/kolla/inventory
|
2020-01-07 17:51:10 +00:00
|
|
|
# generate self-signed certificates for the optional internal TLS tests
|
2020-02-25 18:08:54 +00:00
|
|
|
if [[ "$TLS_ENABLED" = "True" ]]; then
|
2020-01-07 17:51:10 +00:00
|
|
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv certificates > /tmp/logs/ansible/certificates
|
|
|
|
fi
|
2019-07-02 18:44:33 +00:00
|
|
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/upgrade-prechecks
|
2019-06-21 15:49:38 +00:00
|
|
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv pull &> /tmp/logs/ansible/pull-upgrade
|
2019-07-02 18:44:33 +00:00
|
|
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv upgrade &> /tmp/logs/ansible/upgrade
|
|
|
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-upgrade
|
2018-07-10 14:38:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
upgrade
|