Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Add retry capability to jetty downloading #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -48,4 +50,4 @@
default['jetty']['syslog']['tag'] = ''

default['jetty']['start_ini']['custom'] = false
default['jetty']['start_ini']['content'] = []
default['jetty']['start_ini']['content'] = []
2 changes: 2 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down