Code Review
/
salt-formulas
/
influxdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Allow states using curl to retry if transient problem.
[salt-formulas/influxdb.git]
/
influxdb
/
client.sls
diff --git
a/influxdb/client.sls
b/influxdb/client.sls
index 3015a5366f5e86361b1a760ece9fc104e1c5e99b..566c5167a130784a595ca6664bf7a2e451469f16 100644
(file)
--- a/
influxdb/client.sls
+++ b/
influxdb/client.sls
@@
-2,7
+2,7
@@
{%- if client.get('enabled') %}
{%- if client.get('enabled') %}
-{%- set curl_command = 'curl
'
%}
+{%- set curl_command = 'curl
--retry {} --retry-delay {}'.format(client.retry.count, client.retry.delay)
%}
{%- if grains.get('noservices') %}
{%- set curl_command = 'true ' + curl_command %}
{%- endif %}
{%- if grains.get('noservices') %}
{%- set curl_command = 'true ' + curl_command %}
{%- endif %}