客戶端操作系統:windows2008R2
下載相應的saltstack_minion版本:Salt-Minion-3000-Py2-AMD64-Setup
官方鏈接:https://repo.saltstack.com/#windows
在管理員模式下安裝,出現下面的信息時,master IP or Hostaname輸入saltstack master服務器IP,下面的minion name可根據自己的hostname輸入(最好能統一規則,這樣方便在後續中進行分組管理)。
安裝完成後,在服務中會看到有一個salt-minion的服務,處於自動啓動狀態。
回到saltstack-master服務器上,使用salt-key -L檢查與minion的通訊狀態。
[root@localhost ~]# salt-key
Accepted Keys:
Node-1
Denied Keys:
Unaccepted Keys:
R2
Rejected Keys:
從上面的Unaccepted Keys可以看到有一個R2的minioin客戶端。使用salt-key -A接受minion的通訊。
[root@localhost ~]# salt-key -a R2
The following keys are going to be accepted:
Unaccepted Keys:
R2
Proceed? [n/Y] y
Key for minion R2 accepted.
再次執行salt-key,可以看到R2的minion客戶端已經加入到了Accepted Keys列表中。
[root@localhost ~]# salt-key
Accepted Keys:
Node-1
R2
Denied Keys:
Unaccepted Keys:
Rejected Keys: