2019独角兽企业重金招聘Python工程师标准>>>
系统版本
安装 salt-minion 程序
下载 minion 程序
下载链接:https://repo.saltstack.com/windows/
执行安装操作
Salt-Minion-2016.11.2-x86-Setup.exe /S /master=192.168.137.101 /minion-name=windows7 /start-service=0
Note:本次安装准备进行静默安装(The installer can be run silently by providing the /S option at the command line),下面是相关的参数说明:
/master= A string value to set the IP address or host name of the master. Default value is ‘salt’(配置 master 端地址,默认为 salt)
/minion-name= A string value to set the minion name. Default is ‘hostname’(配置 minion 端展示名称,默认为主机名)
/start-service= Either a 1 or 0. ‘1’ will start the service, ‘0’ will not. Default is to start the service after installation.(本处只能填写 0 或 1;0 代表安装后不开启 minion 服务,1 代表安装后立即开启 minion 服务;默认为安装完成后立即开启服务)
你可以通过界面中点击“启动”按钮来开启服务,也可以通过在 cmd 窗口(必须以管理员身份运行;否则会提示系统错误5,拒绝访问
)中输入以下命令:
net start salt-minion
进入 master 端完成配置,并进行测试
[root@centos7 ~]# salt-key -L
Accepted Keys:
centos7
Denied Keys:
Unaccepted Keys:
windows7
Rejected Keys:
[root@centos7 ~]# salt-key -a windows7
The following keys are going to be accepted:
Unaccepted Keys:
windows7
Proceed? [n/Y] y
Key for minion windows7 accepted.
[root@centos7 ~]# salt-key -L
Accepted Keys:
centos7
windows7
Denied Keys:
Unaccepted Keys:
Rejected Keys:
[root@centos7 ~]# salt 'windows7' test.ping
windows7:
True
转载自:http://blog.csdn.net/ken_wanglin/article/details/55212531