From c145db34762532bf95a1d493db8e00c95db9bc67 Mon Sep 17 00:00:00 2001 From: "Vladimir Sharshov (warpc)" Date: Tue, 22 Sep 2015 16:11:46 +0300 Subject: [PATCH] Don't use retries for puppet deployments by default Granular deployment task with possibility for user to control number of retries for any task now allow Astute to decrease number of retries from 1 to 0 by default. It will give us such benefits: * fail fast: do not use useless retries for failed task; * detect cases where we need to place retries inside task code; * show us tasks with bad design from box. For special it could be setup by hands. Change-Id: I0b5645bdceb524f3b0e0135125c9a3f457fbc3b4 Closes-Bug: #1457887 --- lib/astute/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/astute/config.rb b/lib/astute/config.rb index 7d6fce57..fc608985 100644 --- a/lib/astute/config.rb +++ b/lib/astute/config.rb @@ -58,7 +58,7 @@ module Astute conf[:puppet_timeout] = 90 * 60 # maximum time it waits for single puppet run conf[:puppet_deploy_interval] = 2 # sleep for ## sec, then check puppet status again conf[:puppet_fade_timeout] = 120 # how long it can take for puppet to exit after dumping to last_run_summary - conf[:puppet_retries] = 2 # how many times astute will try to run puppet + conf[:puppet_retries] = 0 # how many times astute will try to run puppet conf[:mc_retries] = 10 # MClient tries to call mcagent before failure conf[:mc_retry_interval] = 1 # MClient sleeps for ## sec between retries conf[:puppet_fade_interval] = 30 # retry every ## seconds to check puppet state if it was running