Hey All,
I use chef with openstack or rackspace. I use the knife openstack/rackspace
command on the chef workstation to create and bootstrap nodes.
I have a role which runs a bunch of recipes. When a particular recipe fails for
some reason, is there a way to rerun the role only from that failed recipe and
on.
Thanks,
Rishi
Make sure you follow the rule that says your cookbooks will always be idempotent. I'd you do that, then when you rerun on the failed node it will skip the already competed steps and run the steps that haven't been run.
If it's a node that hasn't ever had a complete run you'll need to re-bootstrap or run chef-client locally and pass in the first-boot.json (ie, chef-client -j /etc/chef/first-boot.json)
Sent from my iPhone
On May 7, 2014, at 6:54 PM, rgokhale@patientslikeme.com wrote:
Hey All,
I use chef with openstack or rackspace. I use the knife openstack/rackspace
command on the chef workstation to create and bootstrap nodes.
I have a role which runs a bunch of recipes. When a particular recipe fails for
some reason, is there a way to rerun the role only from that failed recipe and
on.
Thanks,
Rishi