Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created March 23, 2011 17:19
Show Gist options
  • Save jtimberman/883522 to your computer and use it in GitHub Desktop.
Save jtimberman/883522 to your computer and use it in GitHub Desktop.
# 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