diff --git a/manifests/config.pp b/manifests/config.pp index d97fce570..6f6407074 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -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 { diff --git a/templates/rabbitmqadmin.conf.erb b/templates/rabbitmqadmin.conf.erb new file mode 100644 index 000000000..134308786 --- /dev/null +++ b/templates/rabbitmqadmin.conf.erb @@ -0,0 +1,8 @@ +[default] +<% if @ssl -%> +ssl = True +port = <%= @ssl_management_port %> +<% else -%> +ssl = False +port = <%= @management_port %> +<% end -%>