Skip to content

Commit 62e8876

Browse files
committed
improved documentation and bump version number
1 parent a868df3 commit 62e8876

3 files changed

Lines changed: 38 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
##2015-04-30 - Release - 1.0.2
2+
###Summary
3+
Improved documentation, rspec tests added, license changed from CC-BY-SA-4.0 to Apache-2.0.
4+
15
##2015-04-22 - Release - 1.0.1
26
###Summary
37
Code polishing to be more compliant with puppet-lint suggestions.

README.markdown

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,49 @@ It is possible to install multiple versions of Java on a single node and to spec
5858

5959
##Reference
6060

61+
###Classes
62+
63+
####Public Classes
64+
65+
* [`java::java_6`](#javajava_6): Installs open-jdk-6.
66+
* [`java::java_7`](#javajava_7): Installs open-jdk-7.
67+
68+
###Defines
69+
70+
####Public Defines
71+
72+
* [`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+
6179
###`java::java_6`
6280
Installs OpenJDK-6 from the repositories.
6381

6482
###`java::java_7`
6583
Installs OpenJDK-7 from the repositories.
6684

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+
6793
####Parameters
6894

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`.
71100

72101
##Limitations
73102

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.
75104

76105
##Development
77106

manifests/init.pp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818
#
1919
# Declares all other defines in the java module needed for installing Java.
2020
# Currently, these consists of java::install, and java::config.
21-
# Furthermore, the module provides two classes ready for use for installing
22-
# java-6 and java-7 using the defines.
2321
# 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.
22+
# the target node the command <tt>update-alternatives</tt> is issued to set the
23+
# default java accordingly.
2724
#
2825
# Requires: see Modulefile
2926
#

0 commit comments

Comments
 (0)