File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 24
24
# @param proxy_type
25
25
# Proxy server type (none|http|https|ftp). (passed to archive)
26
26
#
27
+ # @param url
28
+ # Full URL
29
+ #
27
30
# @param basedir
28
31
# Directory under which the installation will occur. If not set, defaults to
29
32
# /usr/lib/jvm for Debian and /usr/java for RedHat.
51
54
$java = ' jdk' ,
52
55
$proxy_server = undef ,
53
56
$proxy_type = undef ,
57
+ $url = undef ,
54
58
$basedir = undef ,
55
59
$manage_basedir = true ,
56
60
$package_type = undef ,
234
238
$spacer = ' %2B'
235
239
$download_folder_prefix = ' jdk-'
236
240
}
237
- $source = " https://github.com/AdoptOpenJDK/openjdk${_version}-binaries/releases/download/${download_folder_prefix}${release_major}${spacer}${release_minor} /${package_name} "
241
+
242
+ # if complete URL is provided, use this value for source in archive resource
243
+ if $url {
244
+ $source = $url
245
+ }
246
+ else {
247
+ $source = " https://github.com/AdoptOpenJDK/openjdk${_version}-binaries/releases/download/${download_folder_prefix}${release_major}${spacer}${release_minor} /${package_name} "
248
+ notice (" Default source url : ${source} " )
249
+ }
238
250
239
251
# full path to the installer
240
252
$destination = " ${destination_dir}${package_name} "
You can’t perform that action at this time.
0 commit comments