修改debian内apt源:
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
apt update
Master
安装salt-master
apt install salt-master
修改配置文件/etc/salt/master
把auto_accept
打开并设置为True
启动服务
service salt-master start
Minion
安装salt-minion
apt install salt-minion
修改配置文件/etc/salt/minion
把master
值设为 master服务器的ip
启动服务
service salt-minion start