How can I get Chef to run apt-get update before running other recipes

后端 未结 12 1512
一生所求
一生所求 2021-01-31 02:01

Right now I have the following in my Vagrantfile:

config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = \"cookbooks\"
    chef.add_recipe \"apt\"
           


        
12条回答
  •  走了就别回头了
    2021-01-31 03:02

    I seem to have been able to solve the issue by applying the following patch:

    https://github.com/wil/cookbooks/commit/a470a4f68602ec3bf3374830f4990a7e19e9de81

提交回复
热议问题