Use template for plugin configuration

This commit is contained in:
vic 2012-11-29 15:31:25 +04:00
parent 917709f3d3
commit 22519bea1a
2 changed files with 8 additions and 5 deletions

View File

@ -61,10 +61,12 @@ class mcollective::rabbitmq(
@service { 'rabbitmq-server' : }
}
exec {"rabbit-plugins":
path => '/usr/sbin/:/usr/lib/rabbitmq/bin/',
command => 'rabbitmq-plugins enable amqp_client rabbitmq_stomp',
require => Package['rabbitmq-server'],
notify => Service['rabbitmq-server'],
file {"/etc/rabbitmq/enabled_plugins":
content => template("mcollective/enabled_plugins.erb"),
owner => root,
group => root,
mode => 0644,
require => Package["rabbitmq-server"],
notify => Service["rabbitmq-server"],
}
}

View File

@ -0,0 +1 @@
[amqp_client,rabbitmq_stomp].