2

当我使用 salt 来配置我的 vagrant box 时,会返回以下输出:

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 中的盐配置:

  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 命令的输出。

4

1 回答 1

2

我解决了这个问题。

minion 配置文件将 startup_states: 键设置为 highstate,因此在启动 minion 时运行 highstate 命令。为了解决这个问题,我在配置中注释掉了这一行,现在一切正常!

于 2014-06-30T23:31:17.300 回答