CentOS7安装salt

#master
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/CentOS-Base.repo
yum install epel-release -y
yum install salt-master -y
service salt-master start
service firewalld stop
setenforce 0
getenforce
salt-key -L
salt-key -A -y
salt-key -L
salt dev3 test.ping
salt dev3 cmd.run ‘hostname -i’

#minion
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/CentOS-Base.repo
yum install epel-release -y
yum install salt-minion -y
echo “master: 192.168.31.210″ > /etc/salt/minion
service salt-minion start
service firewalld stop
ps -ef | grep salt | grep -v grep

此条目发表在 运维 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*


*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>