Defined Type: rabbitmq::plugin

Defined in:
modules/rabbitmq/manifests/plugin.pp

Overview

SPDX-License-Identifier: Apache-2.0 Enables the specified RabbitMQ plugin



3
4
5
6
7
8
9
10
11
# File 'modules/rabbitmq/manifests/plugin.pp', line 3

define rabbitmq::plugin () {
    exec { "rabbitmq-enable-plugin-${title}":
        environment => 'HOME=/var/lib/rabbitmq/',
        command     => "/usr/sbin/rabbitmq-plugins enable ${title}",
        unless      => "/usr/sbin/rabbitmq-plugins list -E | grep ${title}",
        logoutput   => true,
        require     => Service['rabbitmq-server'],
    }
}