Initial Chef repository

This commit is contained in:
Greg Karékinian
2015-07-21 19:45:23 +02:00
parent 7e5401fc71
commit ee4079fa85
1151 changed files with 185163 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# 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