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

Commit e1eadce

Browse files
committed
v1.1.5
* Add support for Java '7u71', '7u72' and '8u25'
1 parent cd12a29 commit e1eadce

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
###1.1.5
2+
3+
* Add support for Java '7u71', '7u72' and '8u25'
4+
15
###1.1.4
26

37
* Fix bug in package name for Java 8u20
@@ -28,4 +32,4 @@
2832

2933
###1.0.0
3034

31-
First forge release
35+
First forge release

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ What envionment type to install. Valid values are 'jre' and 'jdk'. Defaults to '
8282

8383
##Limitations
8484

85-
* 2 different releases of the same Java series can not cohabit on the same system when installed from RPM. Each new version will override the previous one.
85+
* 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 overrides the previous one.
8686
* Works only on [RPM-based distributions](http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based)
8787

8888
##Credits
8989

90-
This module relies almost entirely on all the nice information found on [Ivan Dyedov's Blog](https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/)
90+
The method used by this module to retrieve its installation packages relies on the useful information found on [Ivan Dyedov's Blog](https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/)
9191

9292
##To Do
9393

94-
* Add Oracle Java as a 'java' alternative (will craft a dedicated module for that purpose)
94+
* Add Oracle Java as a 'java' alternative (waiting for an official release of [this module](https://github.com/adrienthebo/puppet-alternatives))
9595
* Allow the manipulation of Java related environment variables
9696
* Propose an alternative based on tar.gz archives, also available from Oracle's archives
9797

98-
Features request and contributions are always welcome!
98+
Features request and contributions are always welcome!

manifests/init.pp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232

3333
# set to latest release if no minor version was provided
3434
if $version == '8' {
35-
$version_real = '8u20'
35+
$version_real = '8u25'
3636
} elsif $version == '7' {
37-
$version_real = '7u67'
37+
$version_real = '7u72'
3838
} elsif $version == '6' {
3939
$version_real = '6u45'
4040
} else {
@@ -50,6 +50,7 @@
5050
case $maj_version {
5151
8 : {
5252
case $min_version {
53+
'25' : { $build = '-b17' }
5354
'20' : { $build = '-b26' }
5455
'11' : { $build = '-b12' }
5556
'5' : { $build = '-b13' }
@@ -59,6 +60,8 @@
5960
}
6061
7 : {
6162
case $min_version {
63+
'72' : { $build = '-b14' }
64+
'71' : { $build = '-b14' }
6265
'67' : { $build = '-b01' }
6366
'65' : { $build = '-b17' }
6467
'60' : { $build = '-b19' }
@@ -152,9 +155,11 @@
152155
$downloadurl = "http://download.oracle.com/otn-pub/java/jdk/${version_final}${build}/${filename}"
153156

154157
# define package name
155-
$packagename = $version_real ? {
156-
'8u20' => "${type}1.${maj_version}.0_${min_version}",
157-
default => $type
158+
if $maj_version == '8' and $min_version >= '20' {
159+
$packagename = "${type}1.${maj_version}.0_${min_version}"
160+
}
161+
else {
162+
$packagename = $type
158163
}
159164

160165
# make sure install/download directory exists

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"project_page": "https://github.com/tOnI0/aco-oracle_java",
66
"source": "git://github.com/tOnI0/aco-oracle_java.git",
77
"summary": "Puppet module to install Oracle Java on RPM-based Linux systems",
8-
"version": "1.1.4",
8+
"version": "1.1.5",
99
"tags": ["rpm","jre","jdk","oracle","java"],
1010
"dependencies": [
1111
{

0 commit comments

Comments
 (0)