diff options
author | root <root@puppetmaster.black.co.at> | 2007-10-13 10:26:14 +0200 |
---|---|---|
committer | root <root@puppetmaster.black.co.at> | 2007-10-13 10:26:14 +0200 |
commit | 38081c9c5e26933946fb1c666218dc66c6f6bde1 (patch) | |
tree | 0905761b589e4fe924388930b4056ece5049b808 /plugins/puppet/type | |
parent | 5bfb0a5c7faf87d91a8fc2789a42ee051b0bc79d (diff) | |
download | puppet-mysql-38081c9c5e26933946fb1c666218dc66c6f6bde1.tar.gz puppet-mysql-38081c9c5e26933946fb1c666218dc66c6f6bde1.tar.xz puppet-mysql-38081c9c5e26933946fb1c666218dc66c6f6bde1.zip |
mysql: add final piece, mysql_grant; add testing statements to site.pp
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 + |