Skip to content

Instantly share code, notes, and snippets.

@mdkent
Created June 7, 2011 21:15
Show Gist options
  • Save mdkent/1013187 to your computer and use it in GitHub Desktop.
Save mdkent/1013187 to your computer and use it in GitHub Desktop.
# Don't delete it on the server
if ! node.run_state[:seen_recipes].has_key?('chef::server')
file Chef::Config[:validation_key] do
action :delete
backup false
only_if { File.exists?(Chef::Config[:client_key]) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment