Skip to content

Commit

Permalink
Don't create rabbitmqadmin.conf if disabled
Browse files Browse the repository at this point in the history
If the admin service isn't enabled then we shouldn't create the config
file.
  • Loading branch information
Clayton O'Neill committed Mar 23, 2015
1 parent 1cc2e54 commit 7d9cd1e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@
notify => Class['rabbitmq::service'],
}

file { 'rabbitmqadmin.conf':
ensure => file,
path => '/etc/rabbitmq/rabbitmqadmin.conf',
content => template('rabbitmq/rabbitmqadmin.conf.erb'),
owner => '0',
group => '0',
mode => '0644',
require => File['/etc/rabbitmq'],
if $admin_enable {
file { 'rabbitmqadmin.conf':
ensure => file,
path => '/etc/rabbitmq/rabbitmqadmin.conf',
content => template('rabbitmq/rabbitmqadmin.conf.erb'),
owner => '0',
group => '0',
mode => '0644',
require => File['/etc/rabbitmq'],
}
}

if $config_cluster {
Expand Down

0 comments on commit 7d9cd1e

Please sign in to comment.