Downgrade mysql cookbook for now

It doesn't play well with our current dev server setup
This commit is contained in:
Greg Karékinian
2017-06-16 22:43:51 +02:00
parent e39792ea36
commit bdfb3a1afb
398 changed files with 12716 additions and 10889 deletions

View File

@@ -0,0 +1,20 @@
def load_current_resource
@current_resource = Chef::Resource::RbacAuth.new(new_resource.name)
@new_resource.definition = run_context.resource_collection.find(:rbac => @new_resource.auth)
begin
@new_resource.user_definition = run_context.resource_collection.find(:rbac_user => @new_resource.user)
rescue Chef::Exceptions::ResourceNotFound
end
end
action :add do
unless new_resource.user_definition
new_resource.user_definition = rbac_user new_resource.user
end
new_resource.add_auth new_resource.user, new_resource.auth
new_resource.updated_by_last_action(true)
new_resource.notifies(:apply, new_resource.user_definition, :delayed)
end