美文网首页
Saltstack安装-基于CentOS7

Saltstack安装-基于CentOS7

作者: Eraz | 来源:发表于2018-04-04 15:14 被阅读0次

Saltstack安装-基于CentOS7,Python2

  1. 安装 saltstack 包源及key
yum install https://repo.saltstack.com/yum/redhat/salt-repo-2018.3-1.el7.noarch.rpm 
  1. 运行 yum clean expire-cache && yum makecache fast
  2. 安装 salt-minion, salt-master, 及其他 Salt 组件
yum install salt-master
yum install salt-minion
yum install salt-ssh
yum install salt-syndic
yum install salt-cloud
yum install salt-api
  1. 启动服务,如 systemctl start salt-master
  2. 密钥指纹
  • master 密钥指纹
    运行 salt-key -f master.pub 查看master密钥指纹,运行salt-key -F 查看所有的密钥指纹
  • minion 密钥指纹
    在minion主机上运行salt-call --local key.finger,或者运行salt-key -f <MINIONID> 查看指定minion的密钥指纹
  1. 密钥管理
  • 列出已知的密钥: salt-key -L
  • 接受所有密钥: salt-key -A
  • 接受指定密钥: salt-key -a <MINIONID>

  1. [WARNING ] /usr/lib/python2.7/site-packages/requests/init.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version!
    RequestsDependencyWarning)
  2. importerror: cannot import name unrewindablebodyerror
  3. importerror: cannot import name certs
pip uninstall urllib3
pip uninstall chardet
pip install requests

相关文章

网友评论

      本文标题:Saltstack安装-基于CentOS7

      本文链接:https://www.haomeiwen.com/subject/ahbkhftx.html