I need to execute a particular cookbook in lot of cookbooks available in node run-list at the time of run chef-client

hi,

I have lot of cookbooks in node run-list but I need to run only one cookbook at
a time once you run the chef-client it executes all in run-list how can I
execute for particular cookbook?? I don’t want to do in bootstrap time ,I
need after bootstrapping ,all cookbooks upload for particular node one by one
and add in run list and execute with ‘sudo chef-client’ command for
particular cookbook please send any solution for this as soon as possible.

Thanks and Regards,
Ganesan.A

Ganesan.A,

Use the --override-runlist functionality of Chef Client/Chef Solo to only
run an individual cookbook.

e.g. 'sudo chef-client --override-runlist "recipe[banana],role[purple]"'

Cheers,

AJ

On 6 January 2013 01:27, ganesan15785@gmail.com wrote:

hi,

I have lot of cookbooks in node run-list but I need to run only one
cookbook at
a time once you run the chef-client it executes all in run-list how can I
execute for particular cookbook?? I don’t want to do in bootstrap time ,I
need after bootstrapping ,all cookbooks upload for particular node one by
one
and add in run list and execute with ‘sudo chef-client’ command for
particular cookbook please send any solution for this as soon as possible.

Thanks and Regards,
Ganesan.A