Move hash outside of function call, fixes for Puppet 2.6
This commit is contained in:
parent
1d10682423
commit
3d1703fc7f
1 changed files with 5 additions and 4 deletions
|
@ -55,10 +55,11 @@ define mysql::db (
|
|||
before => Database_user["${user}@${host}"],
|
||||
}
|
||||
|
||||
ensure_resource('database_user', "${user}@${host}", { ensure => $ensure,
|
||||
$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}":
|
||||
|
|
Loading…
Reference in a new issue