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
{{ message }}
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
@@ -16,7 +19,7 @@ The oracle_java module allows you to install the Oracle JRE or JDK of your choic
16
19
17
20
##Module description
18
21
19
-
This module downloads the desired Java version from Oracle's website and installs it on the target system. On [RPM-based distributions](http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based) the RPM version will be used by default. On all other platforms a tar.gz archive will be retrieved and extracted.
22
+
This module downloads the desired Java version from Oracle's website and installs it on the target system. On [RPM-based distributions](http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based) the RPM version will be used by default. On all other platforms a tar.gz archive will be retrieved and extracted. Multiple versions of Oracle Java can be installed on the same system using a defined type.
20
23
21
24
Java SE archives are available from the Oracle [Java SE Downloads](http://www.oracle.com/technetwork/java/javase/downloads/index.html) and Oracle [Java Archive](http://www.oracle.com/technetwork/java/archive-139210.html) pages.
22
25
@@ -26,8 +29,8 @@ This module is suitable for pretty much any Linux system. It currently supports
26
29
27
30
oracle_java will affect the following parts of your system:
28
31
29
-
* jre/jdk package
30
-
* java alternative (and slaves)
32
+
* jre/jdk packages and/or archives
33
+
* java alternatives (and slaves)
31
34
32
35
Including the main class is enough to install the latest version of the Oracle JRE.
33
36
@@ -62,6 +65,18 @@ class { 'oracle_java':
62
65
}
63
66
```
64
67
68
+
Install multiple Java versions
69
+
70
+
```puppet
71
+
class { 'oracle_java':
72
+
version => '8u45',
73
+
type => 'jdk'
74
+
} ->
75
+
oracle_java::installation { '7u65':
76
+
type => 'jdk'
77
+
}
78
+
```
79
+
65
80
Force installation from standard tar.gz archive
66
81
67
82
```puppet
@@ -83,9 +98,11 @@ class { 'oracle_java':
83
98
84
99
##Usage
85
100
101
+
###Classes and Defined Types
102
+
86
103
####Class: `oracle_java`
87
104
88
-
Primary class and entry point of the module.
105
+
Primary class and entry point of the module. Installs Java in `/usr/java`
89
106
90
107
**Parameters within `oracle_java`:**
91
108
@@ -110,6 +127,28 @@ Enable checksum validation on downloaded archives. Boolean value. Defaults to `t
110
127
111
128
Add Oracle Java to the system alternatives on compatible platforms (Debian/RHEL/SuSE families). Boolean value. Defaults to `false`
112
129
130
+
####Define: `oracle_java::installation`
131
+
132
+
Installs an extra version of Oracle Java in `/usr/java`
133
+
134
+
**Parameters within `oracle_java::installation`:**
135
+
136
+
#####`version`
137
+
138
+
Namevar. See [oracle_java::version](#version)
139
+
140
+
#####`type`
141
+
142
+
See [oracle_java::type](#type)
143
+
144
+
#####`check_checksum`
145
+
146
+
See [oracle_java::check_checksum](#check_checksum)
147
+
148
+
#####`add_alternative`
149
+
150
+
See [oracle_java::add_alternative](#add_alternative)
151
+
113
152
##Limitations
114
153
115
154
Prior to Java 8u20, two different releases of the same Java series could not cohabit on the same system when installed from RPM. Each new version would override the previous one. This does not happen with tar.gz archives however.
0 commit comments