Specifying which cookbooks to run with Chef Solo

后端 未结 5 743
孤城傲影
孤城傲影 2021-01-31 11:05

I\'m using chef-solo to test my cookbooks locally, but I want to be able to only run the cookbook(s) that I\'m testing. Currently, it seems like chef-solo will run all cookbooks

5条回答
  •  我在风中等你
    2021-01-31 11:52

    You need to create a JSON file. There you can specify what exactly cookbook should run:

    {
      "run_list": [ "recipe[hello-chef]" ]
    }
    

    Very well explained in this step-by-step tutorial: http://codeflex.co/creating-and-running-your-first-chef-cookbook/

提交回复
热议问题