File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ The following parameters are available in the `java::adopt` defined type:
127
127
* [ ` java ` ] ( #java )
128
128
* [ ` proxy_server ` ] ( #proxy_server )
129
129
* [ ` proxy_type ` ] ( #proxy_type )
130
+ * [ ` url ` ] ( #url )
130
131
* [ ` basedir ` ] ( #basedir )
131
132
* [ ` manage_basedir ` ] ( #manage_basedir )
132
133
* [ ` package_type ` ] ( #package_type )
@@ -189,6 +190,14 @@ Proxy server type (none|http|https|ftp). (passed to archive)
189
190
190
191
Default value: `` undef ``
191
192
193
+ ##### <a name =" url " ></a >` url `
194
+
195
+ Data type: ` Any `
196
+
197
+ Full URL
198
+
199
+ Default value: `` undef ``
200
+
192
201
##### <a name =" basedir " ></a >` basedir `
193
202
194
203
Data type: ` Any `
@@ -481,4 +490,3 @@ Data type: `Any`
481
490
The name for the optional symlink in the installation directory.
482
491
483
492
Default value: `` undef ``
484
-
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