天天看點

自動化運維之saltstack(一)安裝及常用方法

1、軟體環境:

<code>[root@localhost ~]</code><code># cat /etc/redhat-release </code>

<code>CentOS Linux release 7.3.1611 (Core) </code>

<code>[root@localhost ~]</code><code># uname -a</code>

<code>Linux localhost.localdomain 3.10.0-514.el7.x86_64 </code><code>#1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</code>

<code>[root@localhost ~]</code><code>#</code>

(1)修改selinux配置檔案:

<code>[root@localhost ~]</code><code># vim /etc/sysconfig/selinux </code>

<code>SELINUX=enforcing 改為 SELINUX=disabled</code>

(2)關閉防火牆:

<code>[root@localhost ~]</code><code># systemctl disable firewalld</code>

<code>[root@localhost ~]</code><code># systemctl stop firewalld</code>

<code>[root@localhost ~]</code><code># iptables -F</code>

<code>[root@localhost ~]</code><code># iptables -L</code>

IP配置設定如下:

master 192.168.112.140

minion 192.168.112.141

minion 192.168.112.142

(3)master和minion端部署安裝

master端執行:

<code>[root@localhost ~]</code><code># yum install epel-release</code>