Add retries for rabbitmqadmin curl command

W/o this patch, Rabbitmq::Install::Rabbitmqadmin
sometimes fails to install the rabbitmqadmin script if
there are some connectivity (which is non-transient) errors.

The solution is to add retries for exec command as curl allows
retries only for transient errors and fails for connectivity
errors.

Closes-bug: #1412712
Related-bug: #1410119

Change-Id: I681599ea4a2756e7a442c194c68cf0a484f24f7f
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2015-01-20 11:25:11 +01:00
parent 713c400f72
commit 47e89058bf
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ class rabbitmq::install::rabbitmqadmin {
curl_option => '-k --noproxy localhost --retry 30 --retry-delay 6',
timeout => '180',
wget_option => '--no-proxy',
tries => 30,
try_sleep => 6,
require => [
Class['rabbitmq::service'],
Rabbitmq_plugin['rabbitmq_management']