diff options
Diffstat (limited to 'plugins/puppet/type')
-rw-r--r-- | plugins/puppet/type/mysql_grant.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/puppet/type/mysql_grant.rb b/plugins/puppet/type/mysql_grant.rb new file mode 100644 index 0000000..cc0c0e8 --- /dev/null +++ b/plugins/puppet/type/mysql_grant.rb @@ -0,0 +1,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 + |