salt安装过程
echo "yourname" >> /etc/salt/minion_id
echo "master_ip" >> /etc/salt/minions
master端的认证
- 1、认证的底层. ssh-key,免秘钥
- 2-0、salt-key -h 帮助
- 2-1、salt-key -L 查看host
- 2-2、salt-key -A 接收所有未识别主机
minion端操作
- 1、全局 salt-call state.highstate
- 2、局部操作
- 2-1、php: salt-call state.sls saltenv=‘softs’ php
- 2-2、openresty: salt-call state.sls saltenv=‘softs’ openresty
- 2-3、mysql: salt-call state.sls saltenv=‘softs’ mysql
- 2-4、vim: salt-call state.sls vim
- 2-5、python: salt-call state.sls supervisord
- 2-6、base: salt-call state.sls base
php安全