From 19637d2e84825b9af8804541d88191b2a5f562f4 Mon Sep 17 00:00:00 2001 From: Wolf Noble Date: Fri, 12 Jul 2013 18:06:53 -0500 Subject: [PATCH] include mysql_client package as a requirement for the db creation --- manifests/db.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/db.pp b/manifests/db.pp index 6363b80..d3b9234 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -43,7 +43,11 @@ define mysql::db ( $enforce_sql = false, $ensure = 'present' ) { + #prereqs + include mysql + $client_package_name = $mysql::client_package_name + #input validation validate_re($ensure, '^(present|absent)$', "${ensure} is not supported for ensure. Allowed values are 'present' and 'absent'.") @@ -51,7 +55,7 @@ define mysql::db ( ensure => $ensure, charset => $charset, provider => 'mysql', - require => Class['mysql::server'], + require => [Class['mysql::server'],Package[$client_package_name]], before => Database_user["${user}@${host}"], }