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虚拟机上)