Howard, If indeed you are talking about what Lusis is referring to: a recipe that runs one time and removes itself from the run_list, here's a cookbook with that functionality: The relevant code is in recipes/default.rb: ruby_block "remove annoyances from run list" do block do node.run_list.remove("recipe[annoyances]") end only_if { node.run_list.include("recipe[annoyances]") } end I actually found myself using similar logic in a bootstrap recipe that I recently wrote. Probably won't use it often, but nice to know about it when you do. Cheers! :: toddmichael On Mar 10, 2013, at 12:52 AM, John E. Vincent (lusis) wrote:
|
Archive powered by MHonArc 2.6.16.