Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ Install or remove the package.
#####`oracle_url`
Official Oracle URL to download the binaries from.

#####`proxy_server`
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)

#####`proxy_type`
Proxy server type (none|http|https|ftp). (passed to archive)

###Facts

The java module includes a few facts to describe the version of Java installed on the system:
Expand Down
10 changes: 10 additions & 0 deletions manifests/oracle.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
# [*oracle_url*]
# Official Oracle URL to download binaries from.
#
# [*proxy_server*]
# Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
#
# [*proxy_type*]
# Proxy server type (none|http|https|ftp). (passed to archive)
#
# Variables
# [*release_major*]
# Major version release number for java_se. Used to construct download URL.
Expand Down Expand Up @@ -86,6 +92,8 @@
$version_minor = undef,
$java_se = 'jdk',
$oracle_url = 'http://download.oracle.com/otn-pub/java/jdk/',
$proxy_server = undef,
$proxy_type = undef,
) {

# archive module is used to download the java package
Expand Down Expand Up @@ -216,6 +224,8 @@
extract_path => '/tmp',
cleanup => false,
creates => $creates_path,
proxy_server => $proxy_server,
proxy_type => $proxy_type,
}->
case $::kernel {
'Linux' : {
Expand Down