无法在Windows 10 Minion上安装软件

时间:2016-10-31 17:35:12

标签: salt-stack

我试图让主人在小兵身上安装软件,但它似乎并没有起作用。当我尝试调试时,看起来问题如下:

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

不确定如何修复它。有关更多信息,我的盐主版本是2015.5.10(锂),我的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' 

1 个答案:

答案 0 :(得分:0)

如果是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'