Move hash outside of function call, fixes for Puppet 2.6

This commit is contained in:
Dominic Cleal 2013-03-21 23:59:27 +00:00
parent 1d10682423
commit 3d1703fc7f

View file

@ -55,10 +55,11 @@ define mysql::db (
before => Database_user["${user}@${host}"],
}
ensure_resource('database_user', "${user}@${host}", { ensure => $ensure,
password_hash => mysql_password($password),
provider => 'mysql'
})
$user_resource = { ensure => $ensure,
password_hash => mysql_password($password),
provider => 'mysql'
}
ensure_resource('database_user', "${user}@${host}", $user_resource)
if $ensure == 'present' {
database_grant { "${user}@${host}/${name}":