无法在 windows 10 个 minion 上安装软件

Unable to install software on windows 10 minion

我试图让 master 在 minion 上安装软件,但它似乎不起作用。当我尝试调试时,问题如下:

[DEBUG   ] Missing configuration file: /root/.saltrc

不确定如何修复它。有关更多信息,我的 salt master 版本是 2015.5.10 (lithium),我的 minion 版本是 2015.5.1。完整的调试日志也是:

[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Including configuration from '/etc/salt/master.d/master.conf'
[DEBUG   ] Reading configuration from /etc/salt/master.d/master.conf
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: ECS-141abdb2.ecs.ads.autodesk.com
[DEBUG   ] Missing configuration file: /root/.saltrc
[DEBUG   ] Configuration file path: /etc/salt/master
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Including configuration from '/etc/salt/master.d/master.conf'
[DEBUG   ] Reading configuration from /etc/salt/master.d/master.conf
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: ECS-141abdb2.ecs.ads.autodesk.com
[DEBUG   ] Missing configuration file: /root/.saltrc
[DEBUG   ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
[DEBUG   ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
[DEBUG   ] Sending event - data = {'_stamp': '2016-10-31T15:49:34.567058'}
[DEBUG   ] LazyLoaded local_cache.get_load
[DEBUG   ] get_iter_returns for jid 20161031084934590375 sent to set(['ds']) will timeout at 08:49:39.5975                                          53
[DEBUG   ] jid 20161031084934590375 return from ds
[DEBUG   ] LazyLoaded nested.output

任何帮助将不胜感激,因为我是新手:)

使用的命令是:

sudo salt '<minion>' pkg.install 'chrome' 

在 windows 的情况下,您需要加入一些魔法才能使其正常工作。您是否遵循了说明 written here?文档内容的简短摘要

# prepare your master to know about the win repos
salt-run winrepo.update_git_repos
# tell all connected windows minions to refresh
salt -G 'os:windows' pkg.refresh_db
# list available packages
salt -G 'os:windows' pkg.list_pkgs
# ask your minion for known chrome versions
salt '<minion id>' pkg.available_version chrome
# and finally install it; use version=x.x.x in case of a specific one.
salt '<minion id>' pkg.install 'chrome'