cjmling / findings

Notes on stuff i finds worth keeping for quick reference later on.
2 stars 0 forks source link

Chef run multiple recipe from multiple cookbooks #220

Open cjmling opened 4 years ago

cjmling commented 4 years ago

Use sudo chef-client --local-mode -r "recipe[workstation::setup],recipe[apache::server]"

Note

  1. workstation and apache are cookbook name
  2. setup and server are recipe name

Chef run multiple recipe from multiple cookbooks

cjmling commented 4 years ago

And if you want to just run default recipe of each cookbook then you can omit the recipe name and use shorthand like

sudo chef-client --local-mode -r "recipe[workstation],recipe[apache]"

cjmling commented 4 years ago

--local-mode can be shorthand as -z