Puppet Class: activemq::packages
- Defined in:
- manifests/packages.pp
Overview
Class: activemq::packages
ActiveMQ Packages
Parameters:
Actions:
Requires:
Sample Usage:
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'manifests/packages.pp', line 13
class activemq::packages (
$version,
$package
) {
validate_re($version, '^[~+._0-9a-zA-Z:-]+$')
$version_real = $version
$package_real = $package
package { $package_real:
ensure => $version_real,
notify => Service['activemq'],
}
# Has been reworked in 5.9 and no longer needed
if $::osfamily == 'RedHat' and ($version == 'present' or versioncmp($version, '5.9') < 0) {
# JJM Fix the activemq init script always exiting with status 0
# FIXME This should be corrected in the upstream packages
file { '/etc/init.d/activemq':
ensure => file,
path => '/etc/init.d/activemq',
content => template("${module_name}/init/activemq"),
owner => '0',
group => '0',
mode => '0755',
}
}
}
|