Trying using packages vs pip for centos

This commit is contained in:
Mike Reeves
2019-11-18 12:45:12 -05:00
parent 188d0dd096
commit f05fcc271f

View File

@@ -359,8 +359,8 @@ docker_install() {
if [ $INSTALLTYPE != 'EVALMODE' ]; then if [ $INSTALLTYPE != 'EVALMODE' ]; then
docker_registry docker_registry
fi fi
echo "Using pip3 to install docker-py for salt" #echo "Using pip3 to install docker-py for salt"
pip3 install -t /usr/lib/python3.6/site-packages/ docker #pip3 install -t /usr/lib/python3.6/site-packages/ docker
echo "Restarting Docker" >> $SETUPLOG 2>&1 echo "Restarting Docker" >> $SETUPLOG 2>&1
systemctl restart docker systemctl restart docker
systemctl enable docker systemctl enable docker
@@ -493,7 +493,8 @@ install_pip3() {
if [ $OS == 'ubuntu' ]; then if [ $OS == 'ubuntu' ]; then
apt-get -y install python3-pip gcc python3-dev apt-get -y install python3-pip gcc python3-dev
elif [ $OS == 'centos' ]; then elif [ $OS == 'centos' ]; then
yum -y install python3-pip gcc python3-devel #yum -y install python3-pip gcc python3-devel
yum -y install epel-release python3 python36-dateutil python36-m2crypto python36-mysql python36-docker
fi fi
} }
@@ -868,8 +869,8 @@ EOF
fi fi
fi fi
echo "Using pip3 to install python-dateutil for salt" #echo "Using pip3 to install python-dateutil for salt"
pip3 install -t /usr/lib/python3.6/site-packages/ python-dateutil #pip3 install -t /usr/lib/python3.6/site-packages/ python-dateutil
yum clean expire-cache yum clean expire-cache
yum -y install salt-minion-2019.2.2 yum-utils device-mapper-persistent-data lvm2 openssl yum -y install salt-minion-2019.2.2 yum-utils device-mapper-persistent-data lvm2 openssl
yum -y update exclude=salt* yum -y update exclude=salt*
@@ -1010,8 +1011,8 @@ salt_install_mysql_deps() {
if [ $OS == 'centos' ]; then if [ $OS == 'centos' ]; then
yum -y install mariadb-devel yum -y install mariadb-devel
echo "Using pip3 to install mysqlclient for salt" #echo "Using pip3 to install mysqlclient for salt"
pip3 install -t /usr/lib64/python3.6/site-packages/ mysqlclient #pip3 install -t /usr/lib64/python3.6/site-packages/ mysqlclient
elif [ $OS == 'ubuntu' ]; then elif [ $OS == 'ubuntu' ]; then
apt-get -y install libmysqlclient-dev apt-get -y install libmysqlclient-dev
echo "Using pip3 to install mysqlclient for salt" echo "Using pip3 to install mysqlclient for salt"