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
*[`java::java`](#javajava): Install a specific version of java jdk and possibly sets update-alternative default
73
+
74
+
####Private Defines
75
+
76
+
*[`java::java_install`](#javajava_install): Installs a specific java open-jdk package
77
+
*[`java::java_config`](#javajava_config): Configures the update-alternative default java
78
+
61
79
###`java::java_6`
62
80
Installs OpenJDK-6 from the repositories.
63
81
64
82
###`java::java_7`
65
83
Installs OpenJDK-7 from the repositories.
66
84
85
+
###`java::java`
86
+
Install a specific version of java jdk and possibly sets update-alternative default.
87
+
If hiera defines a value for the parameter `java::java_default_version` on
88
+
the target node the command `update-alternatives` is issued to set the
89
+
default java accordingly.
90
+
91
+
Declares all other defines in the java module needed for installing Java. Currently, these consists of `java::install`, and `java::config`.
92
+
67
93
####Parameters
68
94
69
-
#####`java::java_default_version`
70
-
If present in a JSON hiera file allows to set the default java command in the alternative system.
95
+
#####`java_version`
96
+
Specifies the java version to install. Valid options: '6' or '7'. Defaults to the resource title.
97
+
98
+
#####`java_default_version`
99
+
Specifies the default java in case multiple versions are installed. Valid options: '6' or '7'. Defaults to the hiera defined key `java::java_default_version`.
71
100
72
101
##Limitations
73
102
74
-
At the moment the module targets only OpenJDK on Ubuntu platforms. Specifically, it is tested only on Ubuntu 10.04 and 12.04 distributions, although probably it will work also on more recent versions.
103
+
At the moment the module targets only OpenJDK 6 and 7 on Ubuntu platforms. Specifically, it is tested only on Ubuntu 10.04 and 12.04 distributions, although probably it will work also on more recent versions.
0 commit comments