1、安装salt-master、salt-minion和salt-api
$ sudo yum install epel-release -y
$ sudo yum install salt-master salt-minion salt-api -y
# 配置教程请看 文章 。
# 启动并设置开机启动服务
$ sudo systemctl start salt-master
$ sudo systemctl enable salt-master
$ sudo systemctl start salt-minion
$ sudo systemctl enable salt-minion
$ sudo systemctl start salt-api
$ sudo systemctl enable salt-api
2、安装halite及其依赖文件
$ sudo yum install python-pip -y && sudo pip install --upgrade pip
$ sudo pip install -U halite
$ sudo pip install cherrypy
$ sudo pip install paste
$ sudo yum install python-devel gcc -y
$ sudo pip install gevent
$ sudo pip install pyopenssl
3、在配置文件master
$ sudo vim /etc/salt/master
external_auth:
pam:
testuser: //此用户设置为系统在用的用户
- .*
- '@runne