You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: roles/prereq_jdk/README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ The role will:
13
13
- For JDKs installed from Cloudera's repository, the role will ensure that any missing symbolic links are created to support a consistent JDK installation path.
14
14
- Compare JDK against the support matrix at [supportmatrix.cloudera.com/](https://supportmatrix.cloudera.com) for the specified versions of Cloudera Manager and Cloudera Runtime.
15
15
16
+
- The primary JDK (as defined by `jdk_provider` and `jdk_version`) will always be set as the system default and linked to `/usr/bin/java`.
17
+
- Any additional JDKs installed via `additional_jdk_packages` will not be set as the system default. To use these alternative JDKs, you must reference their explicit paths in scripts or applications (e.g., `/usr/lib/jvm/zulu21-jdk/bin/java`).
16
18
# Requirements
17
19
18
20
- Root or `sudo` privileges are required to install packages and modify system-wide configuration files.
@@ -35,6 +37,9 @@ None.
35
37
|`jdk_security_paths_override`|`bool`|`False`|`False`| Flag to control behavior when multiple `java.security` files are found in the specified paths. If `true`, the role will continue with JCE changes even if multiple files are found. If `false`, the role will fail, requiring a more specific path list. |
36
38
|`cloudera_manager_version`|`str`|`True`|| The version of Cloudera Manager to validate against. |
37
39
|`cloudera_runtime_version`|`str`|`True`|| The version of Cloudera Runtime to validate against. |
40
+
|`additional_jdk_packages`|`list` of `str`|`False`|| List of alternative JDK packages to install (e.g., `openjdk-21-jdk`, `zulu21-jdk`). |
41
+
|`additional_jdk_repository`|`str`|`False`|| Repository URL for the alternative JDK. |
42
+
|`additional_jdk_key`|`str`|`False`|| GPG key URL for the alternative JDK repository. |
38
43
39
44
# Example Playbook
40
45
@@ -70,6 +75,18 @@ None.
70
75
jdk_security_paths_override: false
71
76
cloudera_manager_version: "7.11.3"
72
77
cloudera_runtime_version: "7.1.9"
78
+
79
+
- name: Set up OpenJDK 17 as default and Azul Zulu 21 as alternative
Copy file name to clipboardExpand all lines: roles/prereq_jdk/meta/argument_specs.yml
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ argument_specs:
20
20
- Set up the Java Development Kit (JDK), optionally installing the JDK itself.
21
21
- For JDK 9 and below, optionally enable the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy.
22
22
- If the JDK is installed from the Cloudera repo, add any missing symlinks.
23
+
- The primary JDK (as defined by jdk_provider and jdk_version) will always be set as the system default and linked to /usr/bin/java.
24
+
- Any additional JDKs installed via additional_jdk_packages will not be set as the system default; to use them, explicit paths must be referenced in scripts or applications.
23
25
author: Cloudera Labs
24
26
version_added: "3.0.0"
25
27
options:
@@ -68,3 +70,19 @@ argument_specs:
68
70
description: Version of Cloudera Runtime for validation testing
69
71
type: str
70
72
required: true
73
+
additional_jdk_packages:
74
+
description:
75
+
- List of alternative JDK packages to install (e.g., openjdk-21-jdk, zulu21-jdk).
0 commit comments