Salt Minion

1、The Salt-Minion

   现在salt master 已经启动、配置. 我们需要在所有的系统上安装salt-minion,我们要salt-master 来管理我们.

2、Installing on Centos

#yum install salt-minion


3、Configuring the Salt-Minion

# vim /etc/salt/minion

4、改变 the Salt-Master 目标IP

Find:

#master: salt

Replace with:

master: yourmasterip

Example:

master: 192.168.0.100

5、设置minion id 标识

Find:

#id:

Replace with:

id: hostname

6、重启 the salt-minion service

# service salt-minion restart


7、在 salt-master接收the Minions key

   在 salt master 列出 salt-key's

# salt-key -L

   接收 salt minion's key

# salt-key -a  name

    接收 all keys:

# salt-key -A