Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Added example in Module README.md and update version in Modulefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Fields committed Jan 2, 2014
1 parent cf8ece9 commit db747d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'cyberious-pget'
version '0.1.1'
version '0.1.2'
source 'http://github.com/cyberious/puppet-pget'
author 'Travis F'
license 'Apache License, Version 2.0'
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ Tired of Unix dependencies in your Windows Environment to simply download web ar
username=> "myuser",
password=> "password1'
}

pget {'Download requires Cookie and User-Agent':
source => "http://crazyrobotsniffing.cookiecrying.com/fileIneed.exe",
target => 'd:/stage/',
headerHash => {
'user-agent'=>'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko',
'Cookie' => 'I has cookie;'
}
}
5 changes: 1 addition & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@
exec{"Download-${filename}":
provider => powershell,
command => $cmd,
unless => "if(Test-Path -Path \"${target_file}\" ){ exit 0 }else{exit 1}"
}





}

0 comments on commit db747d6

Please sign in to comment.