Merge pull request #222 from wolfspyre/iss_221
include mysql_client package as a requirement for the db creation
This commit is contained in:
commit
096bd04f8b
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ define mysql::db (
|
|||
$enforce_sql = false,
|
||||
$ensure = 'present'
|
||||
) {
|
||||
|
||||
#input validation
|
||||
validate_re($ensure, '^(present|absent)$',
|
||||
"${ensure} is not supported for ensure. Allowed values are 'present' and 'absent'.")
|
||||
|
||||
|
@ -51,7 +51,7 @@ define mysql::db (
|
|||
ensure => $ensure,
|
||||
charset => $charset,
|
||||
provider => 'mysql',
|
||||
require => Class['mysql::server'],
|
||||
require => [Class['mysql::server'],Package['mysql_client']],
|
||||
before => Database_user["${user}@${host}"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue