@@ -1,3 +1,6 @@
|
|||||||
|
2012-11-15 Scott Schneider <sschneider@puppetlabs.com> - 0.2.0
|
||||||
|
* Add Solaris support
|
||||||
|
|
||||||
2011-06-16 Jeff McCune <jeff@puppetlabs.com> - 0.1.5
|
2011-06-16 Jeff McCune <jeff@puppetlabs.com> - 0.1.5
|
||||||
* Add Debian based distro (Lucid) support
|
* Add Debian based distro (Lucid) support
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name 'puppetlabs-java'
|
name 'puppetlabs-java'
|
||||||
version '0.1.5'
|
version '0.2.0'
|
||||||
source 'git://github.com/puppetlabs/puppetlabs-java'
|
source 'git://github.com/puppetlabs/puppetlabs-java'
|
||||||
author 'puppetlabs'
|
author 'puppetlabs'
|
||||||
license 'Apache'
|
license 'Apache'
|
||||||
|
|||||||
@@ -64,6 +64,22 @@ class java(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
'Solaris': {
|
||||||
|
|
||||||
|
$distribution_solaris = $distribution ? {
|
||||||
|
jdk => 'developer/java/jdk-7',
|
||||||
|
jre => 'runtime/java/jre-7',
|
||||||
|
}
|
||||||
|
|
||||||
|
class { 'java::package_solaris':
|
||||||
|
version => $version,
|
||||||
|
distribution => $distribution_solaris,
|
||||||
|
require => Anchor['java::begin'],
|
||||||
|
before => Anchor['java::end'],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
fail("osfamily ${::osfamily} is not supported")
|
fail("osfamily ${::osfamily} is not supported")
|
||||||
}
|
}
|
||||||
|
|||||||
27
manifests/package_solaris.pp
Normal file
27
manifests/package_solaris.pp
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Class: java::package_solaris
|
||||||
|
#
|
||||||
|
# Implementation class of the Java package
|
||||||
|
# for Solaris 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_solaris(
|
||||||
|
$version,
|
||||||
|
$distribution
|
||||||
|
) {
|
||||||
|
|
||||||
|
package { 'java':
|
||||||
|
ensure => $version,
|
||||||
|
name => $distribution,
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user