Skip to content

Instantly share code, notes, and snippets.

@matejskubic
Forked from jtimberman/gist:883522
Created September 20, 2012 15:35
Show Gist options
  • Save matejskubic/3756644 to your computer and use it in GitHub Desktop.
Save matejskubic/3756644 to your computer and use it in GitHub Desktop.
chef remove recipe
# As the last resource in the dnsserver::remove_slave recipe, assuming that the remove_slave
# "undoes" a dnsserver slave installation of some kind, without knowing what that might have been.
ruby_block "remove_this_recipe" do
block do
node.run_list.remove("recipe[dnsserver::remove_slave]") if node.run_list.include?("recipe[dnsserver::remove_slave]")
end
action :nothing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment