From 4e1bb8f1ce63c4e882f23094a868eb873645ee46 Mon Sep 17 00:00:00 2001 From: refnode Date: Thu, 31 Oct 2013 14:31:37 +0100 Subject: [PATCH] Add timeout parameter to increase for long time running sql imports Signed-off-by: refnode --- manifests/db.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/db.pp b/manifests/db.pp index 69e2081fb..d5d88cd97 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -9,7 +9,8 @@ $grant = 'ALL', $sql = '', $enforce_sql = false, - $ensure = 'present' + $ensure = 'present', + $import_timeout = 300, ) { #input validation validate_re($ensure, '^(present|absent)$', @@ -54,6 +55,7 @@ refreshonly => $refresh, require => Mysql_grant["${user}@${host}/${table}"], subscribe => Mysql_database[$dbname], + timeout => $import_timeout, } } }