summaryrefslogtreecommitdiffstats
path: root/plugins/puppet/type/mysql_grant.rb
blob: cc0c0e82a50d07d1cfa20d15bb0c986a741afc87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This has to be a separate type to enable collecting
Puppet::Type.newtype(:mysql_grant) do
	@doc = "Manage a database user's rights."
	ensurable
	newparam(:name) do
		desc "The primary key: either user@host for global privilges or user@host/database for database specific privileges"
	end
	newproperty(:privileges, :array_matching => :all) do
		desc "The privileges the user should have. The possible values are implementation dependent."
		munge do |v|
			symbolize(v)
		end
	end
end