Skip to content

Commit 06396f5

Browse files
committed
Feat: Allow to download from a login/password protected URL
Signed-off-by: Julien Godin <[email protected]>
1 parent 18cac85 commit 06396f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manifests/download.pp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
# @param url
2929
# Full URL
3030
#
31+
# @param username
32+
# Username for the URL
33+
#
34+
# @param password
35+
# Password for the URL
36+
#
3137
# @param jce
3238
# Install Oracles Java Cryptographic Extensions into the JRE or JDK
3339
#
@@ -62,6 +68,8 @@
6268
Optional[String] $proxy_server = undef,
6369
Optional[Enum['none', 'http', 'https', 'ftp']] $proxy_type = undef,
6470
Optional[String] $url = undef,
71+
Optional[String] $username = undef,
72+
Optional[String] $password = undef,
6573
Boolean $jce = false,
6674
Optional[String] $jce_url = undef,
6775
Optional[String] $basedir = undef,
@@ -258,6 +266,8 @@
258266
archive { $destination :
259267
ensure => present,
260268
source => $source,
269+
username => $username,
270+
password => $password,
261271
extract_path => '/tmp',
262272
cleanup => false,
263273
creates => $creates_path,
@@ -309,6 +319,8 @@
309319
extract_path => $jce_path,
310320
extract_flags => '-oj',
311321
creates => "${jce_path}/US_export_policy.jar",
322+
username => $username,
323+
password => $password,
312324
cleanup => false,
313325
proxy_server => $proxy_server,
314326
proxy_type => $proxy_type,

0 commit comments

Comments
 (0)