diff --git a/lib/puppet/type/mysql_grant.rb b/lib/puppet/type/mysql_grant.rb index 5ec23fd16..1de0697ed 100644 --- a/lib/puppet/type/mysql_grant.rb +++ b/lib/puppet/type/mysql_grant.rb @@ -4,6 +4,7 @@ ensurable autorequire(:file) { '/root/.my.cnf' } + autorequire(:mysql_user) { self[:user] } def initialize(*args) super