f4e20a1f16
CentOS 8 support is now fairly complete - time to drop CentOS 7. Partially-Implements: blueprint centos-rhel-8 Change-Id: I940b1d3eceb98e16fa366c243672f588b1412d70
27 lines
707 B
Bash
Executable File
27 lines
707 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
set -o errexit
|
|
|
|
# Enable unbuffered output for Ansible in Jenkins.
|
|
export PYTHONUNBUFFERED=1
|
|
|
|
function setup_ceph_ansible {
|
|
# Prepare virtualenv for ceph-ansible deployment
|
|
virtualenv --system-site-packages ~/ceph-venv
|
|
~/ceph-venv/bin/pip install -Ir requirements.txt
|
|
~/ceph-venv/bin/pip install -IU selinux
|
|
}
|
|
|
|
function deploy_ceph_ansible {
|
|
RAW_INVENTORY=/etc/kolla/ceph-inventory
|
|
|
|
. ~/ceph-venv/bin/activate
|
|
|
|
cp site-container.yml.sample site-container.yml
|
|
ansible-playbook -i ${RAW_INVENTORY} -e @/etc/kolla/ceph-ansible.yml -vvv site-container.yml --skip-tags=with_pkg &> /tmp/logs/ansible/deploy-ceph
|
|
}
|
|
|
|
setup_ceph_ansible
|
|
deploy_ceph_ansible
|