0
我想在ESXi上安裝salt-minion。但是,如何使用鹽堆來管理ESXi裸機操作系統?使用salt-minion管理ESXi
我想在ESXi上安裝salt-minion。但是,如何使用鹽堆來管理ESXi裸機操作系統?使用salt-minion管理ESXi
如果你可以SSH入它,它有python,那麼你可以使用salt-ssh。
首先按照以下或類似的步驟使ESXi上的sshd: http://techhead.co/vsphere-5-x-how-to-enable-ssh-esxi-shell/
然後在鹽SSH讀了起來: http://docs.saltstack.com/en/latest/topics/ssh/
與目標的細節創建的/ etc /鹽/名冊文件:
targetMinion:
host: 192.168.42.1 # The IP addr or DNS hostname
user: fred # Remote executions will be executed as user fred
passwd: foobarbaz # The password to use for login, if omitted, keys are used
sudo: True # Whether to sudo to root, not enabled by default
給它一個測試:
$ sudo salt-ssh targetMinion test.versions_report
targetMinion:
Salt: 2014.1.13
Python: 2.6.8 (unknown, Jun 9 2012, 11:30:32)
Jinja2: 2.3.1
M2Crypto: Not Installed
msgpack-python: 0.4.0
msgpack-pure: Not Installed
pycrypto: Not Installed
PyYAML: 3.09
PyZMQ: Not Installed
ZMQ: Not Installed
(以上輸出來自cygwin openssh安裝在windows虛擬機上)