jdk_oracle
Version information
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'schrepfler-jdk_oracle', '1.0.10'
Learn more about managing modules with a PuppetfileDocumentation
puppet-jdk_oracle
Puppet module to install a JDK from the RPM binary distribution from oracle using wget. Based on the https://github.com/tylerwalts/puppet-jdk_oracle this module removed support for JDK6 and the tgz installer.
Source: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Note: By using this module you will automatically accept the Oracle agreement to download Java.
This module will work on Redhat family of OSs, and will use wget with a cookie to automatically grab the RPM installer from Oracle.
This approach was inspired by: http://stackoverflow.com/questions/10268583/how-to-automate-download-and-instalation-of-java-jdk-on-linux
Default Version
- JDK8 8u151
- JDK7 7u80
Features
- RedHat Family (RedHat, Fedora, CentOS)
- Java 7 and Java 8
- Possibility to choose between 64 bit
arch=x64
(default) and 32 bitarch=i586
architectures. - Possibility to install JCE on JDK8
Installation
-
Traditional
Copy this project into your puppet modules path and rename it to "jdk_oracle"
-
From Puppet Forge
Install from Puppet Forge:
$ puppet module install schrepfler-jdk_oracle
- Puppet Librarian
Put this in your Puppetfile:
mod "schrepfler/jdk_oracle",
:git => "git://github.com/schrepfler/puppet-jdk_oracle.git"
Usage
Traditional
include jdk_oracle
or
class { 'jdk_oracle': }
Hiera
config.json:
{
classes":[
"jdk_oracle"
]
}
OR config.yaml:
classes:
- "jdk_oracle"
jdk_oracle::version: 7
site.pp:
hiera_include("classes", [])
Parameters:
version (integer 7
| 8
) - Java version to install.
arch (enum 'x64'
|'586'
) - parameter to provide support for other architectures, default 'x64'
.
install_dir (string) - Java installation directory.
tmp_dir (string)
- Temp directory to download the installer, default '/tmp'
.
use_cache (string) - Optionally host the installer file locally instead of fetching it each time, for faster dev & test.
cache_source (string) - The directory where the installer will be cached.
jce (boolean)
- if true will install the Java Cryptographic Extensions (default false
.)
default_java (boolean)
- if true the module will set the installed JDK to be the default system java (default true
.)
TODO:
- Automate installation of security policies security policies reference
Handle JCE installation- Refactor tests to support some use cases of the tgz module
Add support for 32-bit JDKAdd build status icons- Make it possible to uninstall the jdk package
- Automate a bit the release process (bump README, Contributors, changelog...)
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[1.0.10] - 2017-12-26
Changed
- Moving to Docker as build environment
- Updating default JDK8 to update 151
[1.0.9] - 2017-07-21
Changed
- Updating default JDK8 to update 141
[1.0.8] - 2017-04-24
Changed
- Updating default JDK8 to update 131
[1.0.7] - 2017-01-20
Changed
- BREAKING I've noticed this time the download url has changed, tried to hardcode the given path to this version, not sure if it will expire in the future.
- Updating default JDK8 to update 121
[1.0.6] - 2016-10-26
Enhancement
- If download of rpm fails, assure the resource is deleted so that puppet can retry.
[1.0.5] - 2016-10-26
Bugfix
- JDK8 was defaulting the previous build.
[1.0.4] - 2016-10-24
Changed
- Updating default JDK8 to update 111
[1.0.3] - 2016-07-27
Added
- This CHANGELOG file to hopefully serve as an evolving example of a standardized open source project CHANGELOG.
- More badges to get some bling @030
Changed
- BREAKING The JDK version has been transformed from string to integer @030
- BREAKING Changed default lookup of arguments to not call hiera directly leaning on default puppet 4 behaviour. Not sure if puppet 3 users will be affected. Please report back and we'll try to revert this behaviour.
- Updating default JDK8 to update 101
Dependencies
- puppetlabs/stdlib (>= 4.16.0)
Copyright 2016 Srdan Srepfler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.