Add timeout parameter to increase for long time running sql imports

Signed-off-by: refnode <refnode@gmail.com>
This commit is contained in:
refnode 2013-10-31 14:31:37 +01:00 committed by Igor Galić
parent b338635919
commit 4e1bb8f1ce

View file

@ -9,7 +9,8 @@ define mysql::db (
$grant = 'ALL',
$sql = '',
$enforce_sql = false,
$ensure = 'present'
$ensure = 'present',
$import_timeout = 300,
) {
#input validation
validate_re($ensure, '^(present|absent)$',
@ -54,6 +55,7 @@ define mysql::db (
refreshonly => $refresh,
require => Mysql_grant["${user}@${host}/${table}"],
subscribe => Mysql_database[$dbname],
timeout => $import_timeout,
}
}
}