saltstack 安装及配置(Windows篇)

系统版本

  • 主机名:HARVEY-PC OS
  • 名称:Microsoft Windows 7 旗舰版 OS
  • 版本:6.1.7601 Service Pack 1 Build 7601 OS

安装 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 服务;默认为安装完成后立即开启服务)

安装后可以在“服务”界面中找到 salt-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
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值