Skip to content

Commit

Permalink
actual code change for prev commit
Browse files Browse the repository at this point in the history
specifying user separately from db name in fulcrum mysql
  • Loading branch information
antmoth committed Oct 2, 2024
1 parent fca2da7 commit 991832a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/profile/fulcrum/mysql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
$user = $db[1]
$password = $db[2]
exec { "create-${name}-db":
unless => "/usr/bin/mysql -u${name} -p${password} ${name}",
command => "/usr/bin/mysql -uroot -p${root_password} -e \"create database ${name}; grant all on ${name}.* to ${name}@localhost identified by '${password}';\"",
unless => "/usr/bin/mysql -u${user} -p${password} ${name}",
command => "/usr/bin/mysql -uroot -p${root_password} -e \"create database ${name}; grant all on ${name}.* to ${user}@localhost identified by '${password}';\"",
require => Service["mysqld"],
}
}
Expand Down

0 comments on commit 991832a

Please sign in to comment.