ChefZero returning 404

后端 未结 3 1361
生来不讨喜
生来不讨喜 2021-02-19 11:38

I am setting up a simple vagrant box with chef solo as the provisioner. Everything was going fine until i tried running it on my laptop. The machine comes up fine but when it pr

相关标签:
3条回答
  • 2021-02-19 12:26

    I had to set both version and channel in my Vagrantfile:

    chef.channel = "stable"
    chef.version = "12.10.24"
    

    This way vagrant uses the good url to download old chef stable version.

    0 讨论(0)
  • 2021-02-19 12:33

    I seem to have found the answer. I'll post it here in case anyone else is experiencing this issue

    This a bug in the current "latest" build of chef when using vagrant.

    https://github.com/chef/chef/issues/4948

    The last comment on the issue solves the error.

    0 讨论(0)
  • 2021-02-19 12:39

    I believe this is related to this issue in Chef core.

    The fix seems to be to add the following to your chef_solo provisioner section in your Vagrantfile:

    chef.version = '12.10.40'
    
    0 讨论(0)
提交回复
热议问题