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

Commit

Permalink
v1.1.5
Browse files Browse the repository at this point in the history
* Add support for Java '7u71', '7u72' and '8u25'
  • Loading branch information
antoineco committed Oct 15, 2014
1 parent cd12a29 commit e1eadce
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
###1.1.5

* Add support for Java '7u71', '7u72' and '8u25'

###1.1.4

* Fix bug in package name for Java 8u20
Expand Down Expand Up @@ -28,4 +32,4 @@

###1.0.0

First forge release
First forge release
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ What envionment type to install. Valid values are 'jre' and 'jdk'. Defaults to '

##Limitations

* 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.
* 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.
* Works only on [RPM-based distributions](http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based)

##Credits

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/)
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/)

##To Do

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

Features request and contributions are always welcome!
Features request and contributions are always welcome!
15 changes: 10 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

# set to latest release if no minor version was provided
if $version == '8' {
$version_real = '8u20'
$version_real = '8u25'
} elsif $version == '7' {
$version_real = '7u67'
$version_real = '7u72'
} elsif $version == '6' {
$version_real = '6u45'
} else {
Expand All @@ -50,6 +50,7 @@
case $maj_version {
8 : {
case $min_version {
'25' : { $build = '-b17' }
'20' : { $build = '-b26' }
'11' : { $build = '-b12' }
'5' : { $build = '-b13' }
Expand All @@ -59,6 +60,8 @@
}
7 : {
case $min_version {
'72' : { $build = '-b14' }
'71' : { $build = '-b14' }
'67' : { $build = '-b01' }
'65' : { $build = '-b17' }
'60' : { $build = '-b19' }
Expand Down Expand Up @@ -152,9 +155,11 @@
$downloadurl = "http://download.oracle.com/otn-pub/java/jdk/${version_final}${build}/${filename}"

# define package name
$packagename = $version_real ? {
'8u20' => "${type}1.${maj_version}.0_${min_version}",
default => $type
if $maj_version == '8' and $min_version >= '20' {
$packagename = "${type}1.${maj_version}.0_${min_version}"
}
else {
$packagename = $type
}

# make sure install/download directory exists
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"project_page": "https://github.com/tOnI0/aco-oracle_java",
"source": "git://github.com/tOnI0/aco-oracle_java.git",
"summary": "Puppet module to install Oracle Java on RPM-based Linux systems",
"version": "1.1.4",
"version": "1.1.5",
"tags": ["rpm","jre","jdk","oracle","java"],
"dependencies": [
{
Expand Down

0 comments on commit e1eadce

Please sign in to comment.