|
4 | 4 | # |
5 | 5 | # Parameters: |
6 | 6 | # |
7 | | -# $java_version:: The java version. Possible values at this time are <tt>6</tt> and <tt>7</tt>. |
| 7 | +# $java_version:: The java version. Possible values at this time are |
| 8 | +# <tt>6</tt> and <tt>7</tt>. |
8 | 9 | # Defaults to the resource's title. |
9 | 10 | # |
10 | | -# $java_default_version:: The java default version. Possible values at this time are <tt>6</tt> and <tt>7</tt>. |
11 | | -# If different than +undef+ it will be used to configure the alternative system. |
| 11 | +# $java_default_version:: The java default version. Possible values at this time |
| 12 | +# are <tt>6</tt> and <tt>7</tt>. |
| 13 | +# If different than +undef+ it will be used to configure |
| 14 | +# the alternative system. |
12 | 15 | # Defaults to +undef+. |
13 | 16 | # |
14 | 17 | # Actions: |
15 | 18 | # |
16 | 19 | # Declares all other defines in the java module needed for installing Java. |
17 | 20 | # Currently, these consists of java::install, and java::config. |
18 | | -# Furthermore, the module provides two classes ready for use for installing java-6 and java-7 using the defines. |
19 | | -# If hiera defines a value for the parameter <tt>java_default_version</tt> on the target node the |
20 | | -# command <tt>update-alternatives</tt> is issued to set the default java accordingly. |
| 21 | +# Furthermore, the module provides two classes ready for use for installing |
| 22 | +# java-6 and java-7 using the defines. |
| 23 | +# If hiera defines a value for the parameter <tt>java_default_version</tt> on |
| 24 | +# the target node the |
| 25 | +# command <tt>update-alternatives</tt> is issued to set the default java |
| 26 | +# accordingly. |
21 | 27 | # |
22 | 28 | # Requires: see Modulefile |
23 | 29 | # |
24 | 30 | # Sample Usage: |
25 | 31 | # |
26 | 32 | # java {'6': } |
27 | | -define java ($java_version = $title, $java_default_version = hiera('java::java_default_version', undef)) { |
| 33 | +define java ( |
| 34 | + $java_version = $title, |
| 35 | + $java_default_version = hiera('java::java_default_version', undef)) { |
28 | 36 | java::install { $java_version: |
29 | 37 | } -> java::config { $java_version: |
30 | 38 | java_default_version => $java_default_version, |
|
0 commit comments