voxpupuli / puppet-wget

A puppet recipe for wget, a useful tool to download arbitary files from the web
Apache License 2.0
41 stars 114 forks source link

How to download the file inside a directory #84

Open souravbiswas opened 7 years ago

souravbiswas commented 7 years ago

Hi there,

My requirement is that I have a URL location of a directory inside which there is a package which I need to download. The trouble is that the package name changes due to versioning. So, all I have is the directory location to download the file. I tried various methods to download the package inside the URL location but have not been successful. So need help.

The wget in my site.pp looks like -

wget::fetch { 'study-war': source => 'http://car-build-001.com:8080/jenkins/job/Study/ws/dist', destination => '/home/souravb/study/', user => 'uname', password => 'password', timeout => 0, verbose => false, }

The package is inside the location http://car-build-001.com:8080/jenkins/job/Study/ws/dist.