System version:
CentOS6.7 x86_64
Deployment planning:
Serial number |
Host Name |
Ip |
Role |
1 |
Linux-node1.example.com |
10.0.0.7 |
Salt-master, Salt-minion |
2 |
Linux-node2.example.com |
10.0.0.8 |
Salt-minion |
Linux-node1.example.com:
Installing Salt-master salt-minion
Yum Install Salt-master salt-minion-y
Start Salt-master
/etc/init.d/salt-master start
Modifying the Minion-side configuration file
Vim/etc/salt/minion 16-line change to master:10.0.0.7
Start Salt-minion
/etc/init.d/salt-minion start
View all minion-side keys sent to master (linux-node2.example.com after installing salt-minion and starting to see results)
[Email protected] master]# salt-keyaccepted keys:denied keys:unaccepted Keys: linux-node1.example.comlinux-node2.example.comrejected Keys:
Accept all keys sent to master by the Minion side
[Email protected] master]# salt-key-a
The following keys is going to be accepted:
unaccepted Keys:
Linux-node1.example.com
Linux-node2.example.com
Proceed? [n/y] Y
Key for Minion Linux-node1.example.com accepted.
Key for Minion Linux-node2.example.com accepted
Modifying the Minion-side configuration file
Vim/etc/salt/minion
16 Line to master:10.0.0.7
/etc/init.d/salt-minion start
Linux-node2.example.com
Installing Salt-minion
Yum Install Salt-minion-y
Modifying the Minion-side configuration file
Vim/etc/salt/minion 16-line change to master:10.0.0.7
Start Salt-minion
/etc/init.d/salt-minion start
This article is from the "architects of the Day" blog, be sure to keep this source http://wanyuetian.blog.51cto.com/3984643/1716931
Saltstack Installation Deployment (CentOS 6.7)