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:
parent
23a4a362a0
commit
f44830ca7b
2 changed files with 2 additions and 0 deletions
|
@ -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.'
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue