Chef infra 厨房测试和重新启动流浪者箱

Chef infra 厨房测试和重新启动流浪者箱,chef-infra,virtualbox,recipe,test-kitchen,Chef Infra,Virtualbox,Recipe,Test Kitchen,我写了一些食谱。 现在我想在多个平台上使用kitchen进行测试。 我想在安装Visual Studio之前重新启动virtualbox。 但是当机器重新启动时,我的会话就结束了,我无法安装Visual studio。 我使用厨师12.5.1 可以安装PowerShell 4,重新启动虚拟机,然后再次重新启动我的run chef并安装visulstudio吗? 我声明,如果我从顾客那里做起,一切都可以,但从厨房做起就不行了 谢谢你这么老的Chef无法使用,你需要使用12.11或更高版本,但Tes

我写了一些食谱。 现在我想在多个平台上使用kitchen进行测试。 我想在安装Visual Studio之前重新启动virtualbox。 但是当机器重新启动时,我的会话就结束了,我无法安装Visual studio。 我使用厨师12.5.1

可以安装PowerShell 4,重新启动虚拟机,然后再次重新启动我的run chef并安装visulstudio吗? 我声明,如果我从顾客那里做起,一切都可以,但从厨房做起就不行了


谢谢你

这么老的Chef无法使用,你需要使用12.11或更高版本,但Test Kitchen一般都支持这一点。相关provisioner配置的示例:

provisioner:
  name: chef_zero # or chef_solo
  require_chef_omnibus: 12.11 # need the RFC 062 exit codes
  retry_on_exit_code:
    - 35 # 35 is the exit code signaling that the node is rebooting
  max_retries: 1
  client_rb:
    exit_status: :enabled # Opt-in to the standardized exit codes
    client_fork: false  # Forked instances don't return the real exit code

谢谢你。我尝试使用chef 12.11.8,错误是:异常类:Kitchen::ActionFailed无法完成converge操作。现在有什么问题?