Skip to content

Commit

Permalink
Merge pull request #329 from twc-openstack/disable-rabbitmqadmin.conf
Browse files Browse the repository at this point in the history
Don't create rabbitmqadmin.conf if disabled
  • Loading branch information
jonnytdevops committed Apr 1, 2015
2 parents 0e860c9 + 7d9cd1e commit f0ad2fe
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 @@ -93,14 +93,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 $::osfamily == 'Debian' {
Expand Down

0 comments on commit f0ad2fe

Please sign in to comment.