34 lines
662 B
Puppet
34 lines
662 B
Puppet
# Class: java::package_debian
|
|
#
|
|
# Implementation class of the Java package
|
|
# for debian 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_debian(
|
|
$version,
|
|
$distribution
|
|
) {
|
|
|
|
file { "/var/local/sun-java6.preseed":
|
|
content => template("${module_name}/sun-java6.preseed"),
|
|
}
|
|
package { 'java':
|
|
ensure => $version,
|
|
name => $distribution,
|
|
responsefile => "/var/local/sun-java6.preseed",
|
|
require => File["/var/local/sun-java6.preseed"],
|
|
}
|
|
|
|
}
|