Permalink
Browse files

Move hash outside of function call, fixes for Puppet 2.6

  • Loading branch information...
1 parent 1d10682 commit 3d1703fc7fddac400429908e9a40abdd60b7a0a9 @domcleal domcleal committed Mar 21, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 manifests/db.pp
View
@@ -55,10 +55,11 @@
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}":

0 comments on commit 3d1703f

Please sign in to comment.