script 수정
This commit is contained in:
@@ -13,7 +13,7 @@ LANG=en_US.UTF-8
|
|||||||
|
|
||||||
function _localrepo() {
|
function _localrepo() {
|
||||||
echo -e "\033[33mlocalrepo install start!\033[0m"
|
echo -e "\033[33mlocalrepo install start!\033[0m"
|
||||||
yum config-manager --add-repo file://$PWD/kubespray/roles/cmoa-infra/files/files_repo
|
yum config-manager --add-repo file://$PWD/kubespray/roles/exem-infra/files/files_repo
|
||||||
echo -e "\033[32mlocalrepo install done!\033[0m"
|
echo -e "\033[32mlocalrepo install done!\033[0m"
|
||||||
echo "module_hotfixes=1" >> /etc/yum.repos.d/$(ls /etc/yum.repos.d/ |grep files_repo |awk '{printf $1}')
|
echo "module_hotfixes=1" >> /etc/yum.repos.d/$(ls /etc/yum.repos.d/ |grep files_repo |awk '{printf $1}')
|
||||||
echo "gpgcheck=0" >> /etc/yum.repos.d/$(ls /etc/yum.repos.d/ |grep files_repo |awk '{printf $1}')
|
echo "gpgcheck=0" >> /etc/yum.repos.d/$(ls /etc/yum.repos.d/ |grep files_repo |awk '{printf $1}')
|
||||||
@@ -42,7 +42,7 @@ function _install_ansible() {
|
|||||||
echo -e "\n\033[32mansible is installed!\n\033[0m"
|
echo -e "\n\033[32mansible is installed!\n\033[0m"
|
||||||
else
|
else
|
||||||
echo -e "\n\033[33mansible install start!\n\033[0m"
|
echo -e "\n\033[33mansible install start!\n\033[0m"
|
||||||
pip3 install -f $PWD/kubespray/roles/cmoa-infra/files/files_repo/python/* --prefix=/usr
|
pip3 install -f $PWD/kubespray/roles/exem-infra/files/files_repo/python/* --prefix=/usr
|
||||||
if ansible --version; then
|
if ansible --version; then
|
||||||
echo -e "\n\033[32mansible install done!\n\033[0m"
|
echo -e "\n\033[32mansible install done!\n\033[0m"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user