Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F11023549
init.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
init.pp
View Options
# Class: java
#
# This module manages the Java runtime package
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# [Remember: No empty lines between comments and class definition]
class
java
(
$distribution
=
'jdk'
,
$version
=
'installed'
)
{
validate_re
(
$distribution,
'^jdk$|^jre$|^java.*$'
)
validate_re
(
$version,
'installed|^[._0-9a-zA-Z:-]+$'
)
anchor
{
'java::begin'
:
}
anchor
{
'java::end'
:
}
case
$operatingsystem
{
centos
,
redhat
,
oel
:
{
class
{
'java::package_redhat'
:
version
=>
$version,
distribution
=>
$distribution,
require
=>
Anchor
[
'java::begin'
],
before
=>
Anchor
[
'java::end'
],
}
}
debian
,
ubuntu
:
{
$distribution_debian
=
$distribution
?
{
jdk
=>
'sun-java6-jdk'
,
jre
=>
'sun-java6-jre'
,
}
class
{
'java::package_debian'
:
version
=>
$version,
distribution
=>
$distribution_debian,
require
=>
Anchor
[
'java::begin'
],
before
=>
Anchor
[
'java::end'
],
}
}
default
:
{
fail
(
"operatingsystem $operatingsystem is not supported"
)
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 18, 4:46 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3281901
Attached To
R145 puppet-puppetlabs-java
Event Timeline
Log In to Comment