Install ceph-ansible in the undercloud
To deploy Ceph in the overcloud using ceph-ansible it is necessary to have it installed in the undercloud. Change-Id: Ia9cf977e3350790db1511963f1b40b5c11d2bf67
This commit is contained in:
parent
ce74b90174
commit
a636c0fad3
|
@ -293,13 +293,13 @@ function repo_setup {
|
||||||
if [ "$TRIPLEO_OS_DISTRO" = "centos" ]; then
|
if [ "$TRIPLEO_OS_DISTRO" = "centos" ]; then
|
||||||
# Enable Storage/SIG Ceph repo
|
# Enable Storage/SIG Ceph repo
|
||||||
if [[ "${STABLE_RELEASE}" = "mitaka" ]] ; then
|
if [[ "${STABLE_RELEASE}" = "mitaka" ]] ; then
|
||||||
if rpm -q centos-release-ceph-jewel; then
|
|
||||||
sudo yum -y erase centos-release-ceph-jewel
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if rpm -q centos-release-ceph-hammer; then
|
if rpm -q centos-release-ceph-hammer; then
|
||||||
sudo yum -y erase centos-release-ceph-hammer
|
sudo yum -y erase centos-release-ceph-hammer
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
if rpm -q centos-release-ceph-jewel; then
|
||||||
|
sudo yum -y erase centos-release-ceph-jewel
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
sudo /bin/bash -c "cat <<-EOF>$REPO_PREFIX/$CEPH_REPO_FILE
|
sudo /bin/bash -c "cat <<-EOF>$REPO_PREFIX/$CEPH_REPO_FILE
|
||||||
[centos-ceph-$CEPH_RELEASE]
|
[centos-ceph-$CEPH_RELEASE]
|
||||||
|
@ -526,7 +526,7 @@ function undercloud {
|
||||||
|
|
||||||
log "Undercloud install"
|
log "Undercloud install"
|
||||||
|
|
||||||
sudo yum install -y python-tripleoclient
|
sudo yum install -y python-tripleoclient ceph-ansible
|
||||||
|
|
||||||
if [ ! -f ~/undercloud.conf ]; then
|
if [ ! -f ~/undercloud.conf ]; then
|
||||||
cp -b -f $UNDERCLOUD_CONF ~/undercloud.conf
|
cp -b -f $UNDERCLOUD_CONF ~/undercloud.conf
|
||||||
|
|
Loading…
Reference in New Issue