Skip to content

Commit

Permalink
oops, fixes mysql user
Browse files Browse the repository at this point in the history
  • Loading branch information
mtylty committed Nov 8, 2011
1 parent dd62a4c commit 3cf6c66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mysql/manifests/defines/user.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define mysql::user($user, $password, $grant) {
exec { "create-${user}":
unless => "/usr/bin/mysql -u${user} -p${password}",
command => "/usr/bin/mysql -uroot -p${mysql_password} -e \"grant ${grant} to ${user}@localhost identified by '${password}';\"",
define mysql::user($password, $grant) {
exec { "create-user-${name}":
unless => "/usr/bin/mysql -u${name} -p${password}",
command => "/usr/bin/mysql -uroot -p${mysql_password} -e \"grant ${grant} to ${name}@localhost identified by '${password}';\"",
require => Service["mysql"]
}
}

0 comments on commit 3cf6c66

Please sign in to comment.