Skip to content

Commit

Permalink
create /tmp/.rabbitmqadmin.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gillies authored and Colleen Murphy committed Dec 18, 2014
1 parent ac046ee commit 5aea1f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@
notify => Class['rabbitmq::service'],
}

file { 'rabbitmqadmin.conf':
ensure => file,
path => '/tmp/.rabbitmqadmin.conf',
content => template('rabbitmq/rabbitmqadmin.conf.erb'),
owner => '0',
group => '0',
mode => '0644',
}


if $config_cluster {

Expand Down
8 changes: 8 additions & 0 deletions templates/rabbitmqadmin.conf.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[default]
<% if @ssl -%>
ssl = True
port = <%= @ssl_management_port %>
<% else -%>
ssl = False
port = <%= @management_port %>
<% end -%>

0 comments on commit 5aea1f1

Please sign in to comment.