summaryrefslogtreecommitdiff
path: root/lib/puppet/type/mysql_database.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/type/mysql_database.rb')
-rw-r--r--lib/puppet/type/mysql_database.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/type/mysql_database.rb b/lib/puppet/type/mysql_database.rb
index b01bb83..0ba929f 100644
--- a/lib/puppet/type/mysql_database.rb
+++ b/lib/puppet/type/mysql_database.rb
@@ -1,7 +1,10 @@
# This has to be a separate type to enable collecting
Puppet::Type.newtype(:mysql_database) do
@doc = "Manage a database."
+
ensurable
+ autorequire(:service) { 'mysql' }
+
newparam(:name) do
desc "The name of the database."