Introduction
部署工具, 与ansible类似,想比较ansible特点
都是Python开发库
插件相对ansible较少,社区比较年轻
salt依赖ZeroMQ ansible ssh ,通信的效率较高
Install
yum install salt-master
yum install salt-minion
systemctl start salt-master
salt-master -l debug
默认配置文件
/etc/salt
salt-minion -l debug
/etc/salt/minion配置
master: 192.168.0.3 #master端的ip
id: test-minion #自己的标识
→ systemctl restart salt-minion
master端
salt-key -L
salt-key -a test-minion / salt-key -A
test
# salt ‘*’ test.ping
concepts
states
pillar
link:
http://docs.saltstack.cn/
http://docs.saltstack.cn/topics/tutorials/walkthrough.html
http://docs.saltstack.cn/topics/tutorials/starting_states.html
http://docs.saltstack.cn/topics/tutorials/pillar.html
http://www.tuicool.com/articles/m6RVJf
http://www.shencan.net/index.php/category/%E8%87%AA%E5%8A%A8%E5%8C%96%E8%BF%90%E7%BB%B4/saltstack/