diff --git a/lib/puppet/type/mysql_database.rb b/lib/puppet/type/mysql_database.rb index 3e8518c..5df4321 100644 --- a/lib/puppet/type/mysql_database.rb +++ b/lib/puppet/type/mysql_database.rb @@ -3,6 +3,8 @@ Puppet::Type.newtype(:mysql_database) do ensurable + autorequire(:file) { '/root/.my.cnf' } + newparam(:name, :namevar => true) do desc 'The name of the MySQL database to manage.' end diff --git a/lib/puppet/type/mysql_user.rb b/lib/puppet/type/mysql_user.rb index 2d059ce..759eb52 100644 --- a/lib/puppet/type/mysql_user.rb +++ b/lib/puppet/type/mysql_user.rb @@ -4,6 +4,8 @@ Puppet::Type.newtype(:mysql_user) do ensurable + autorequire(:file) { '/root/.my.cnf' } + newparam(:name, :namevar => true) do desc "The name of the user. This uses the 'username@hostname' or username@hostname." validate do |value|