summaryrefslogtreecommitdiff
path: root/plugins/puppet/type/mysql_user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/puppet/type/mysql_user.rb')
-rw-r--r--plugins/puppet/type/mysql_user.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/puppet/type/mysql_user.rb b/plugins/puppet/type/mysql_user.rb
new file mode 100644
index 0000000..d92b610
--- /dev/null
+++ b/plugins/puppet/type/mysql_user.rb
@@ -0,0 +1,12 @@
+# This has to be a separate type to enable collecting
+Puppet::Type.newtype(:mysql_user) do
+ @doc = "Manage a database user."
+ ensurable
+ newparam(:name) do
+ desc "The name of the user. This uses the 'username@hostname' form."
+ end
+ newproperty(:password_hash) do
+ desc "The password hash of the user. Use mysql_password() for creating such a hash."
+ end
+end
+