Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
$server_config,
$instance,
$package,
$system_user,
$system_group,
$path = '/etc/activemq/activemq.xml',
$server_config_show_diff = 'UNSET',
) {

# Resource defaults
File {
owner => 'activemq',
group => 'activemq',
owner => $system_user,
group => $system_group,
mode => '0644',
notify => Service['activemq'],
require => Package[$package],
Expand Down Expand Up @@ -59,8 +61,8 @@
file { 'activemq.xml':
ensure => file,
path => $path_real,
owner => 'activemq',
group => 'activemq',
owner => $system_user,
group => $system_group,
mode => '0600',
content => $server_config_real,
}
Expand Down
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
$webconsole = $activemq::params::webconsole,
$server_config = $activemq::params::server_config,
$server_config_show_diff = $activemq::params::server_config,
$system_user = $activemq::params::system_user,
$system_group = $activemq::params::system_group,
$mq_broker_name = $activemq::params::mq_broker_name,
$mq_admin_username = $activemq::params::mq_admin_username,
$mq_admin_password = $activemq::params::mq_admin_password,
Expand Down Expand Up @@ -94,6 +96,8 @@
package => $package_real,
server_config => $server_config_real,
server_config_show_diff => $server_config_show_diff,
system_user => $system_user,
system_group => $system_group,
require => Class['activemq::packages'],
notify => Class['activemq::service'],
}
Expand Down
14 changes: 12 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@
$mq_cluster_brokers = []

# Debian does not include the webconsole
# OpenBSD system user/group differs
case $::osfamily {
'Debian': {
$webconsole = false
$webconsole = false
$system_user = 'activemq'
$system_group = 'activemq'
}
'OpenBSD': {
$webconsole = true
$system_user = '_activemq'
$system_group = '_activemq'
}
default: {
$webconsole = true
$webconsole = true
$system_user = 'activemq'
$system_group = 'activemq'
}
}
}