tux4linux
tux4linux

Reputation: 121

chef run_list remove all recipes

Is there a way to remove all the recipes in the run_list of a node?

I have a problem statement where I need to remove all in the run_list and add it at runtime whenever required.

I can remove each individually, but I am dealing with a lot of nodes at a time.

Upvotes: 0

Views: 1007

Answers (1)

coderanger
coderanger

Reputation: 54181

Look up knife exec and the transform helper. Something like knife exec -E 'transform("*:*") {|n| n.run_list.reset! }

Upvotes: 2

Related Questions