Setup Scripts - Fixing some Centos realted errors

This commit is contained in:
Mike Reeves
2018-10-08 12:14:03 -04:00
parent 3349718383
commit d29eecad12

View File

@@ -247,6 +247,14 @@ detect_os() {
docker_install() {
if [ $OS == 'centos']; then
yum clean expire-cache
yum -y install yum-utils device-mapper-persistent-data lvm2 openssl
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y update
yum -y install docker-ce python-docker
else
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
apt-get update >>~/sosetup.log 2>&1
apt-get -y install docker-ce >>~/sosetup.log 2>&1
@@ -262,6 +270,7 @@ docker_install() {
echo "Restarting Docker"
systemctl restart docker
fi
fi
}
@@ -455,9 +464,7 @@ saltify() {
yum clean expire-cache
yum -y install salt-minion yum-utils device-mapper-persistent-data lvm2 openssl
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y update
yum -y install docker-ce python-docker
# Nasty hack but required for now
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then