Skip to content

Commit

Permalink
Add new test downloads
Browse files Browse the repository at this point in the history
Increase version for new release
  • Loading branch information
sulaweyo committed Jan 20, 2016
1 parent 335146a commit 1e88030
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ download { 'my ssl and basic auth download':
pass => 'pass'
}
download {'download if not exists':
uri => 'http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.22/7z922.exe',
force => false,
dest => '/tmp/7z922.exe'
}
download { 'download with basic auth and ssl, ssl forced':
uri => 'http://host.com:8443/test.txt',
use_ssl => true,
Expand Down
1 change: 0 additions & 1 deletion lib/puppet/provider/download/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def fetch(uri_str, limit = 10)


if resource[:proxy_host] and resource[:proxy_port]

if resource[:proxy_user] and resource[:proxy_pass]
http = Net::HTTP.new(uri.host, uri.port, resource[:proxy_host], resource[:proxy_port], resource[:proxy_user], resource[:proxy_pass])
else
Expand Down
10 changes: 8 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
}

download { 'test https and large file':
uri => 'https://downloads.mariadb.org/f/mariadb-10.0.17/bintar-linux-glibc_214-x86_64/mariadb-10.0.17-linux-glibc_214-x86_64.tar.gz?serve',
dest => "${target}mariadb-10.0.17-linux-glibc_214-x86_64.tar.gz",
uri => 'https://downloads.mariadb.org/f/mariadb-10.1.10/source/mariadb-10.1.10.tar.gz?serve',
dest => "${target}mariadb-10.1.10.tar.gz",
}

download { 'test force false':
uri => 'https://downloads.mariadb.org/f/mariadb-10.1.10/source/mariadb-10.1.10.tar.gz?serve',
dest => "${target}mariadb-10.1.10.tar.gz",
force => false
}

download { 'test basic auth':
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"source": "https://github.com/sulaweyo/http_download",
"summary": "Contains a type that allows simple http downloads via ruby.",
"tags": [],
"version": "0.1.6"
"version": "0.1.7"
}

0 comments on commit 1e88030

Please sign in to comment.