Files
cmoa_installer_ansible/00_ansible_setup/setup_local.sh
2023-02-16 21:40:53 +09:00

27 lines
648 B
Bash
Executable File

#!/bin/bash
if [ -z "$BASH_VERSION" ]; then exec bash "$0" "$@"; exit; fi
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-*
rpm_list=`find . -name "*.rpm"`
for rpm in ${rpm_list}
do
if [[ ${rpm} == *"01_python3"* ]]; then
echo "rpm -ivh ${rpm} --nodeps"
rpm -ivh ${rpm} --nodeps
else
echo "rpm -Uvh ${rpm}"
rpm -Uvh ${rpm}
fi
done
pip3 install --upgrade --no-index -f ./02-pip/pip-20.3-py2.py3-none-any.whl pip==20.3
pip3 install --no-index -f ./03_ansible ansible
pip3 install --no-index -f ./04_kubernetes kubernetes
pip3 install --no-index -f ./05_minio Minio
tar xvfBpz ./06_kubectl/kubectl.tar.gz -C /usr/bin/