How do i run a chef cookbook locally using the runlist option?



  • You can run chef cookbooks locally to test them, locally meaning on your workstation (laptop) This example assumes you are running a linux OS.

    The output has been excluded, chef is very chatty.

    $ sudo chef-client --local-mode --runlist 'recipe[webapp]'
    

    The webapp cookbook here is kept where you have specified your cookbook path in knife.rb


Log in to reply
 

© Lightnetics 2024