MODULES-5058 Allow a complete URL to be passed to the java::oracle class
This provides a workaround to the issue of Oracle changing it's URL structure which breaks the dynamic URL building in the module. It allows a complete URL to be passed as an alternative to one built by the logic in the module, and allows the rest of the module to function as expected when this situation is encountered. Changes made to manifests/oracle.pp to pass URL in `url` parameter (if defined) to the `source` directive of the archive resource which fetches the installer package. README.markdown has been updated to document the additional parameter, as well as a note added to known issues describing it's operation. A test has been added to spec/defines/oracle_spec.rb to verify the correct package is present in the tmp archive location. The spec tests have passed and the revised workflow has been tested in a lab environment and found to be working.
This commit is contained in:
@@ -153,6 +153,10 @@ Specify a proxy server, with port number if needed. ie: https://example.com:8080
|
||||
|
||||
Proxy server type (none|http|https|ftp). (passed to archive)
|
||||
|
||||
##### `url`
|
||||
|
||||
Pass an entire URL to download the installer from rather than building the complete URL from other parameters. This will allow the module to be used even if the URLs are changed by Oracle. If this parameter is used, matching `version_major` and `version_minor` parameters must also be passed to the class.
|
||||
|
||||
### Facts
|
||||
|
||||
The java module includes a few facts to describe the version of Java installed on the system:
|
||||
@@ -197,6 +201,8 @@ Oracle Java is supported on:
|
||||
|
||||
### Known issues
|
||||
|
||||
Where Oracle change the format of the URLs to different installer packages, the curl to fetch the package may fail with a HTTP/404 error. In this case, passing a full known good URL using the `url` parameter will allow the module to still be able to install specific versions of the JRE/JDK. Note the `version_major` and `version_minor` parameters must be passed and must match the version downloaded using the known URL in the `url` parameter.
|
||||
|
||||
#### OpenBSD
|
||||
|
||||
OpenBSD packages install Java JRE/JDK in a unique directory structure, not linking
|
||||
|
||||
Reference in New Issue
Block a user