Specifying which cookbooks to run with Chef Solo

后端 未结 5 686
孤城傲影
孤城傲影 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:39

    Also worth noting that when testing you can easily override the runlist

    chef-solo --override-runlist "role["somerole"],recipe[mycookbook::recipe]"
    

提交回复
热议问题