Make grant autorequire user

grants that happen before a user is created cause an ERROR 1396
This commit is contained in:
Hunter Haugen 2015-02-05 16:21:24 -08:00
parent 3fa70506c4
commit 506292ae58

View file

@ -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