autorequire mysql::server in types

instead of making mysql::db have a hard dependency on mysql::server, we
now have a (soft) dependency on it through the types (mysql_user, and
mysql_database) that mysql::db uses. (n.b.: mysql_grant depends on
mysql_user so it doesn't need an explicit dependency on mysql::server)
This commit is contained in:
Igor Galić 2015-07-30 16:11:17 +02:00
parent 23a4a362a0
commit f44830ca7b
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ Puppet::Type.newtype(:mysql_database) do
ensurable
autorequire(:file) { '/root/.my.cnf' }
autorequire(:class) { 'mysql::server' }
newparam(:name, :namevar => true) do
desc 'The name of the MySQL database to manage.'

View file

@ -5,6 +5,7 @@ Puppet::Type.newtype(:mysql_user) do
ensurable
autorequire(:file) { '/root/.my.cnf' }
autorequire(:class) { 'mysql::server' }
newparam(:name, :namevar => true) do
desc "The name of the user. This uses the 'username@hostname' or username@hostname."