Puppet Class: rabbitmq::plugins

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

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/rabbitmq/manifests/plugins.pp', line 1

class rabbitmq::plugins {

    include rabbitmq
    # https://www.rabbitmq.com/management.html
    # Needed for https://www.rabbitmq.com/management-cli.html
    # rabbitmq-plugins -E list | egrep '\[E\*]\srabbitmq_management
    exec { 'enable_management_plugin':
        environment => 'HOME=/var/lib/rabbitmq/',
        command     => '/usr/sbin/rabbitmq-plugins enable rabbitmq_management',
        unless      => '/usr/sbin/rabbitmq-plugins list -E | grep rabbitmq_management',
        logoutput   => true,
        notify      => Service['rabbitmq-server'],
    }
}