当我使用salt配置我的流浪盒时,会返回以下输出:
Calling state.highstate... (this may take a while)
local:
Data failed to compile:
----------
The function "state.highstate" is running as PID 2998 and was started at with jid req
这意味着我无法看到highstate命令的结果。这是我在Vagrantfile中的salt配置:
config.vm.provision :salt do |salt|
salt.minion_key = "srv/etc/salt/pki/minion/minion.pem"
salt.minion_pub = "srv/etc/salt/pki/minion/minion.pub"
salt.minion_config = "srv/etc/salt/minion"
salt.run_highstate = true
salt.verbose = true
salt.colorize = true
salt.log_level = 'all'
我做错了吗?我希望能够看到highstate命令的输出。
答案 0 :(得分:1)
我发现了问题。
minion配置文件将startup_states:key设置为highstate,以便在引导minion时运行highstate命令。为了解决这个问题,我在配置中注释掉了这一行,现在一切正常!