Ubuntu20.04 安装部署saltstack
一、服务端部署方式
1、创建目录和文件
mkdir -p /etc/apt/sources.list.d/&&cd /etc/apt/sources.list.d/ && touch salt.list
2、获取源
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/3004/salt-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/3004 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
3、更新源
sudo apt-get update
4、安装saltstack
sudo apt-get install salt-master
sudo apt-get install salt-minion
sudo apt-get install salt-ssh
sudo apt-get install salt-syndic
sudo apt-get install salt-cloud
sudo apt-get install salt-api
5、启动服务并加入开机自启动
systemctl stats salt-master
systemctl enable salt-master
二、客户端部署安装
部署软件源通服务端
1、安装客户端服务
sudo apt-get install salt-minion
2、启动服务并加入开机自启动
systemctl start salt-minion
systemctl enable salt-minion