Defined Type: jboss::jboss_4
- Defined in:
- manifests/jboss_4.pp
Overview
Installs JBoss-4. The resource title has to be an unique name identifying the JBoss installation and it could be used to specify the desired version. Supported versions are: 4.0.0, 4.0.2, 4.0.4, 4.0.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3.
The main actions performed are:
- Download of the distribution from SourceForge and
- Unzip of the distribution under /opt.
Note that the download of the distribution takes place only if the distribution is not present in /tmp and the distribution was not yet unzipped.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/jboss_4.pp', line 28
define jboss::jboss_4 ($version = undef, $jdksuffix = '',) {
include jboss
if $version == undef {
$jversion = $title
}
$jboss_dist = "${jversion}.GA${jdksuffix}"
$jboss_inst_folder = "jboss-${jversion}.GA"
download_uncompress { "install_${jboss_inst_folder}":
download_base_url => 'http://sourceforge.net/projects/jboss/files/JBoss',
distribution_name => "JBoss-${jversion}.GA/jboss-${jboss_dist}.zip/download",
dest_folder => '/opt',
creates => "/opt/${jboss_inst_folder}",
uncompress => 'zip',
user => jboss,
group => jboss,
}
}
|