diff --git a/attributes/default.rb b/attributes/default.rb index 97452cc..3c261f6 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -32,6 +32,8 @@ default['jetty']['version'] = '8.1.10.v20130312' default['jetty']['link'] = 'http://eclipse.org/downloads/download.php?file=/jetty/8.1.10.v20130312/dist/jetty-distribution-8.1.10.v20130312.tar.gz&r=1' +default['jetty']['retries'] = 0 +default['jetty']['retry_delay'] = 2 default['jetty']['checksum'] = 'e966f87823adc323ce67e99485fea126b84fff5affdc28aa7526e40eb2ec1a5b' # SHA256 default['jetty']['directory'] = '/usr/local/src' @@ -48,4 +50,4 @@ default['jetty']['syslog']['tag'] = '' default['jetty']['start_ini']['custom'] = false -default['jetty']['start_ini']['content'] = [] \ No newline at end of file +default['jetty']['start_ini']['content'] = [] diff --git a/recipes/default.rb b/recipes/default.rb index 8e128f0..2e2ef24 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -82,6 +82,8 @@ remote_file node['jetty']['download'] do source node['jetty']['link'] checksum node['jetty']['checksum'] + retries node['jetty']['retries'] + retry_delay node['jetty']['retry_delay'] mode 0644 end