Skip to content

Commit aba179a

Browse files
author
Jean B.
committed
Merge pull request puppetlabs#98 from mhaskel/missed_docs
Add missing docs for new facts
2 parents b138633 + cb54efb commit aba179a

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎README.markdown‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* [Beginning with the java module](#beginning-with-the-java-module)
99
4. [Usage - Configuration options and additional functionality](#usage)
1010
5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
11-
5. [Limitations - OS compatibility, etc.](#limitations)
12-
6. [Development - Guide for contributing to the module](#development)
11+
6. [Limitations - OS compatibility, etc.](#limitations)
12+
7. [Development - Guide for contributing to the module](#development)
1313

1414
##Overview
1515

@@ -62,6 +62,16 @@ The following parameters are available in the java module:
6262

6363
* `java_alternative_path`: The path to the 'java' command. Since the alternatives system makes it difficult to verify which alternative is actually enabled, this is required to ensure the correct JVM is enabled.
6464

65+
###Facts
66+
67+
The java module includes a few facts to describe the version of Java installed on the system:
68+
69+
* `java_major_version`: The major version of Java.
70+
* `java_patch_level`: The patch level of Java.
71+
* `java_version`: The full Java version string.
72+
73+
**Note:** The facts return `nil` if Java is not installed on the system.
74+
6575
##Limitations
6676

6777
This module cannot guarantee installation of Java versions that are not available on platform repositories.

0 commit comments

Comments
 (0)