Add timeout parameter to increase for long time running sql imports
Signed-off-by: refnode <refnode@gmail.com>
This commit is contained in:
parent
b338635919
commit
4e1bb8f1ce
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue