SaltStack四种运行方式
- Local
- Minion/Master C/S架构
- Syndic
- Salt SSH 无需在客户端安装agent,只需要ssh
windows服务器只能部署Minion 不能部署Master
一、安装部署
minion被控端192.168.202.25 hostname:test2
master节点192.168.202.24 hostname:test1
https://repo.saltproject.io/#rhel #可根据salt文档进行安装
192.168.202.24上操作:
[root@test1 ~]# sudo rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/3004/SALTSTACK-GPG-KEY.pub
[root@test1 ~]# curl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/3004.repo | sudo tee /etc/yum.repos.d/salt.repo
[root@test1 ~]# cat /etc/yum.repos.d/salt.repo
[salt-3004-repo]
name=Salt repo for RHEL/CentOS 7 PY3
baseurl=https://repo.saltproject.io/py3/redhat/7/x86_64/3004
skip_if_unavailable=True
failovermethod=priority
enabled=1
<