Add JDK 1.6.0_25 as the default package

This adds a new java::jdk_package class and makes
the wrapper class default to this Java runtime.
This commit is contained in:
Jeff McCune
2011-05-24 14:09:56 -07:00
parent dddbad11a9
commit 46fc64b641
5 changed files with 61 additions and 6 deletions

28
manifests/jdk_package.pp Normal file
View File

@@ -0,0 +1,28 @@
# Class: java:jdk_package
#
# This class installs the Java JDK package
# produced from ./jdk-6u25-linux-x64-rpm.bin -x
#
# This is the "Official" RPM distributed by Oracle
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
class java::jdk_package (
$version
) {
# JJM FIXME Validation!
$version_real = $version
package { 'jdk':
ensure => $version_real,
alias => 'java',
}
}