Update glusterfs version 3.7 to 6
Update old gluster version to latest (3.7 to 6) Change-Id: I70dec3fdfdecec6a4ce476676057eb5efdea39d4
This commit is contained in:
parent
2c8ce5ec98
commit
0654aaff47
@ -3,20 +3,12 @@
|
|||||||
# devstack/gluster-functions.sh
|
# devstack/gluster-functions.sh
|
||||||
# Functions to control the installation and configuration of the **GlusterFS** storage
|
# Functions to control the installation and configuration of the **GlusterFS** storage
|
||||||
|
|
||||||
# Installs 3.x version of glusterfs
|
|
||||||
# Triggered from devstack/plugin.sh as part of devstack "pre-install"
|
# Triggered from devstack/plugin.sh as part of devstack "pre-install"
|
||||||
function install_glusterfs {
|
function install_glusterfs {
|
||||||
if [[ ${DISTRO} =~ rhel7 ]] && [[ ! -f /etc/yum.repos.d/glusterfs-epel.repo ]]; then
|
if [[ ${DISTRO} =~ rhel7 ]] && [[ ! -f /etc/yum.repos.d/glusterfs-epel.repo ]]; then
|
||||||
sudo wget $GLUSTERFS_CENTOS_REPO -O /etc/yum.repos.d/glusterfs-epel.repo
|
sudo wget $GLUSTERFS_CENTOS_REPO -O /etc/yum.repos.d/glusterfs-epel.repo
|
||||||
elif is_ubuntu; then
|
elif is_ubuntu; then
|
||||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 3FE869A9
|
sudo add-apt-repository ppa:gluster/glusterfs-6 -y
|
||||||
if [ "$1" == "3.6" ]; then
|
|
||||||
echo "deb http://ppa.launchpad.net/gluster/glusterfs-3.6/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/glusterfs-3_6.list
|
|
||||||
echo "deb-src http://ppa.launchpad.net/gluster/glusterfs-3.6/ubuntu $(lsb_release -sc) main" | sudo tee --append /etc/apt/sources.list.d/glusterfs-3_6.list
|
|
||||||
elif [ "$1" == "3.7" ]; then
|
|
||||||
echo "deb http://ppa.launchpad.net/gluster/glusterfs-3.7/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/glusterfs-3_7.list
|
|
||||||
echo "deb-src http://ppa.launchpad.net/gluster/glusterfs-3.7/ubuntu $(lsb_release -sc) main" | sudo tee --append /etc/apt/sources.list.d/glusterfs-3_7.list
|
|
||||||
fi
|
|
||||||
NO_UPDATE_REPOS=False
|
NO_UPDATE_REPOS=False
|
||||||
REPOS_UPDATED=False
|
REPOS_UPDATED=False
|
||||||
fi
|
fi
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
# - cleanup_glusterfs
|
# - cleanup_glusterfs
|
||||||
|
|
||||||
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
||||||
echo_summary "Installing GlusterFS 3.7"
|
echo_summary "Installing GlusterFS"
|
||||||
install_glusterfs 3.7
|
install_glusterfs
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
if is_service_enabled c-bak && [[ "$CONFIGURE_GLUSTERFS_CINDER_BACKUP" == "True" ]]; then
|
if is_service_enabled c-bak && [[ "$CONFIGURE_GLUSTERFS_CINDER_BACKUP" == "True" ]]; then
|
||||||
echo_summary "Configuring GlusterFS as a backend for Cinder backup driver"
|
echo_summary "Configuring GlusterFS as a backend for Cinder backup driver"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user