Add proxy options for Oracle Java
This commit is contained in:
@@ -133,6 +133,12 @@ Install or remove the package.
|
|||||||
#####`oracle_url`
|
#####`oracle_url`
|
||||||
Official Oracle URL to download the binaries from.
|
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
|
###Facts
|
||||||
|
|
||||||
The java module includes a few facts to describe the version of Java installed on the system:
|
The java module includes a few facts to describe the version of Java installed on the system:
|
||||||
|
|||||||
@@ -34,6 +34,12 @@
|
|||||||
# [*oracle_url*]
|
# [*oracle_url*]
|
||||||
# Official Oracle URL to download binaries from.
|
# 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
|
# Variables
|
||||||
# [*release_major*]
|
# [*release_major*]
|
||||||
# Major version release number for java_se. Used to construct download URL.
|
# Major version release number for java_se. Used to construct download URL.
|
||||||
@@ -86,6 +92,8 @@ define java::oracle (
|
|||||||
$version_minor = undef,
|
$version_minor = undef,
|
||||||
$java_se = 'jdk',
|
$java_se = 'jdk',
|
||||||
$oracle_url = 'http://download.oracle.com/otn-pub/java/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
|
# archive module is used to download the java package
|
||||||
@@ -216,6 +224,8 @@ define java::oracle (
|
|||||||
extract_path => '/tmp',
|
extract_path => '/tmp',
|
||||||
cleanup => false,
|
cleanup => false,
|
||||||
creates => $creates_path,
|
creates => $creates_path,
|
||||||
|
proxy_server => $proxy_server,
|
||||||
|
proxy_type => $proxy_type,
|
||||||
}->
|
}->
|
||||||
case $::kernel {
|
case $::kernel {
|
||||||
'Linux' : {
|
'Linux' : {
|
||||||
|
|||||||
Reference in New Issue
Block a user