Adding java::package_suse class

This commit is contained in:
Scott Schneider
2012-12-27 10:59:12 -08:00
parent 017a749d13
commit 7264c4022e
2 changed files with 43 additions and 0 deletions

View File

@@ -80,6 +80,22 @@ class java(
}
'Suse': {
$distribution_suse = $distribution ? {
jdk => 'java-1_6_0-ibm-devel',
jre => 'java-1_6_0-ibm',
}
class { 'java::package_suse':
version => $version,
distribution => $distribution_suse,
require => Anchor['java::begin'],
before => Anchor['java::end'],
}
}
default: {
fail("osfamily ${::osfamily} is not supported")
}

27
manifests/package_suse.pp Normal file
View File

@@ -0,0 +1,27 @@
# Class: java::package_suse
#
# Implementation class of the Java package
# for SUSE based systems.
#
# This class is not meant to be used by the end user
# of the module. It is an implementation class
# of the composite Class[java]
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
class java::package_suse(
$version,
$distribution
) {
package { 'java':
ensure => $version,
name => $distribution,
}
}