Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit d95c7ac

Browse files
committed
update doc
1 parent c67d3bd commit d95c7ac

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This module is suitable for pretty much any Linux system. It currently supports
2727
oracle_java will affect the following parts of your system:
2828

2929
* jre/jdk package
30+
* java alternative +slaves
3031

3132
Including the main class is enough to install the latest version of the Oracle JRE.
3233

@@ -70,12 +71,13 @@ class { '::oracle_java':
7071
}
7172
```
7273

73-
Disable checksum validation
74+
Disable checksum validation and add java alternative
7475

7576
```puppet
7677
class { '::oracle_java':
7778
78-
check_checksum => false
79+
check_checksum => false,
80+
add_alternative => true
7981
}
8082
```
8183

@@ -102,8 +104,15 @@ What envionment type to install. Valid values are 'jre' and 'jdk'. Defaults to '
102104
What format of installation archive to retrieve. Valid values are 'rpm' and 'tar.gz'. Default depends on the platform
103105

104106
#####`check_checksum`
107+
105108
Enable checksum validation on downloaded archives. Boolean value. Defaults to 'true'
106109

110+
#####`add_alternative`
111+
112+
Add Oracle Java to the system alternatives on compatible platforms*. Boolean value. Defaults to 'false'
113+
114+
(*Debian/RHEL/SuSE-like)
115+
107116
##Limitations
108117

109118
* 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.
@@ -114,7 +123,6 @@ The cookie manipulation used by this module to download its installation package
114123

115124
##To Do
116125

117-
* Add Oracle Java as a 'java' alternative (waiting for an official release of [this module](https://github.com/adrienthebo/puppet-alternatives))
118126
* Allow the manipulation of Java related environment variables
119127

120128
Features request and contributions are always welcome!

0 commit comments

Comments
 (0)