Greg Karékinian bdfb3a1afb Downgrade mysql cookbook for now
It doesn't play well with our current dev server setup
2017-06-16 22:44:57 +02:00

16 lines
441 B
Ruby

# This module is used to retain state during the course of a chef
# run. The LWRPs in the cookbook modify a global hash in this module,
# and at the end of the chef run if user authorizations change they
# are written out into the system.
#
module RBAC
def self.authorizations
@authorizations ||= {}
end
def self.add_authorization(username, auth)
authorizations[username] ||= []
authorizations[username] << auth
end
end