Make grant autorequire user
grants that happen before a user is created cause an ERROR 1396
This commit is contained in:
parent
3fa70506c4
commit
506292ae58
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ Puppet::Type.newtype(:mysql_grant) do
|
|||
ensurable
|
||||
|
||||
autorequire(:file) { '/root/.my.cnf' }
|
||||
autorequire(:mysql_user) { self[:user] }
|
||||
|
||||
def initialize(*args)
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue