When I combine using a cookbook recipe and a single, non-recipe file using chef-client 12.5 on Windows, I get the error
Cookbook @recipe_files not found. If you're loading @recipe_files from another cookbook, make sure you configure the dependency in your metadata
For, example, my command line is
chef-client -r mycookbook::default /individual_recipes/my_non_cookbook_recipe.rb
Running
chef-client -r mycookbook::default
or
chef-client /individual_recipes/my_non_cookbook_recipe.rb
works though. Is there a way to get the single command line to work? I don't want to create a whole separate cookbook for this single recipe file.
Thanks.
The ability to run single files is kind of an accident. We added chef-apply
to make it more official and should probably deprecate it in chef-client
. In neither case does it support this though.