saltstack升级

1.背景

saltstack出现安全漏洞,5.1前后爆出很多设备已经变成矿机。

2.处理方法

升级到最新版本salt

3.官方升级方法

yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest.el6.noarch.rpm  (centos6--python2)

yum install https://repo.saltstack.com/py3/redhat/salt-py3-repo-latest.el7.noarch.rpm (centos7-python3)

yum clean expire-cache

yum install salt-minion

service salt-minion restart

4.yum更新遇到的问题

Cannot open: https://repo.saltstack.com/yum/redhat/salt-repo-latest.el6.noarch.rpm. Skipping.
Error: Nothing to do

解决方法:

yum update wget nss  -y

相关推荐