【发布时间】:2015-04-09 06:08:53
【问题描述】:
我想在 ESXi 上安装 salt-minion。但是如何使用 salt-stack 管理 ESXi 裸机操作系统?
【问题讨论】:
标签: linux salt-stack esxi
我想在 ESXi 上安装 salt-minion。但是如何使用 salt-stack 管理 ESXi 裸机操作系统?
【问题讨论】:
标签: linux salt-stack esxi
如果你可以 ssh 进入它并且它有 python,那么你可以使用 salt-ssh。
首先按照以下或类似步骤在 esxi 上启用 sshd: http://techhead.co/vsphere-5-x-how-to-enable-ssh-esxi-shell/
然后阅读 Salt SSH: http://docs.saltstack.com/en/latest/topics/ssh/
使用目标的详细信息创建一个 /etc/salt/roster 文件:
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
(以上输出来自 windows VM 上的 cygwin openssh 安装)
【讨论】: