Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions manifests/download.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,23 @@
# @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
#
# @param jce_url
# Full URL to the jce zip file
#
# @param jce_username
# Username for the JCE URL
#
# @param jce_password
# Password for the JCE URL
#
# @param basedir
# Directory under which the installation will occur. If not set, defaults to
Expand Down Expand Up @@ -62,8 +74,12 @@
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] $jce_username = undef,
Optional[String] $jce_password = undef,
Optional[String] $basedir = undef,
Boolean $manage_basedir = false,
Optional[String] $package_type = undef,
Expand Down Expand Up @@ -258,6 +274,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 +327,8 @@
extract_path => $jce_path,
extract_flags => '-oj',
creates => "${jce_path}/US_export_policy.jar",
username => $jce_username,
password => $jce_password,
cleanup => false,
proxy_server => $proxy_server,
proxy_type => $proxy_type,
Expand Down