Skip to content

Commit

Permalink
Feat: Allow to download from a login/password protected URL
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Godin <[email protected]>
  • Loading branch information
JGodin-C2C committed Mar 21, 2024
1 parent 18cac85 commit 06396f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/download.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
# @param url
# Full URL
#
# @param username
# Username for the URL
#
# @param password
# Password for the URL
#
# @param jce
# Install Oracles Java Cryptographic Extensions into the JRE or JDK
#
Expand Down Expand Up @@ -62,6 +68,8 @@
Optional[String] $proxy_server = undef,
Optional[Enum['none', 'http', 'https', 'ftp']] $proxy_type = undef,
Optional[String] $url = undef,
Optional[String] $username = undef,
Optional[String] $password = undef,
Boolean $jce = false,
Optional[String] $jce_url = undef,
Optional[String] $basedir = undef,
Expand Down Expand Up @@ -258,6 +266,8 @@
archive { $destination :
ensure => present,
source => $source,
username => $username,
password => $password,
extract_path => '/tmp',
cleanup => false,
creates => $creates_path,
Expand Down Expand Up @@ -309,6 +319,8 @@
extract_path => $jce_path,
extract_flags => '-oj',
creates => "${jce_path}/US_export_policy.jar",
username => $username,
password => $password,
cleanup => false,
proxy_server => $proxy_server,
proxy_type => $proxy_type,
Expand Down

0 comments on commit 06396f5

Please sign in to comment.