Skip to content

Commit 5aea1f1

Browse files
David GilliesColleen Murphy
authored andcommitted
create /tmp/.rabbitmqadmin.conf
1 parent ac046ee commit 5aea1f1

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

manifests/config.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@
8787
notify => Class['rabbitmq::service'],
8888
}
8989

90+
file { 'rabbitmqadmin.conf':
91+
ensure => file,
92+
path => '/tmp/.rabbitmqadmin.conf',
93+
content => template('rabbitmq/rabbitmqadmin.conf.erb'),
94+
owner => '0',
95+
group => '0',
96+
mode => '0644',
97+
}
98+
9099

91100
if $config_cluster {
92101

templates/rabbitmqadmin.conf.erb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[default]
2+
<% if @ssl -%>
3+
ssl = True
4+
port = <%= @ssl_management_port %>
5+
<% else -%>
6+
ssl = False
7+
port = <%= @management_port %>
8+
<% end -%>

0 commit comments

Comments
 (0)