2 class rabbitmq::install::rabbitmqadmin {
5 $management_port = $rabbitmq::ssl_management_port
8 $management_port = $rabbitmq::management_port
11 $default_user = $rabbitmq::default_user
12 $default_pass = $rabbitmq::default_pass
13 $protocol = $rabbitmq::ssl ? { false => 'http', default => 'https' }
15 staging::file { 'rabbitmqadmin':
16 target => "${rabbitmq::rabbitmq_home}/rabbitmqadmin",
17 source => "${protocol}://${default_user}:${default_pass}@localhost:${management_port}/cli/rabbitmqadmin",
18 curl_option => '-k --noproxy localhost --retry 30 --retry-delay 6',
20 wget_option => '--no-proxy',
22 Class['rabbitmq::service'],
23 Rabbitmq_plugin['rabbitmq_management']
27 file { '/usr/local/bin/rabbitmqadmin':
30 source => "${rabbitmq::rabbitmq_home}/rabbitmqadmin",
32 require => Staging::File['rabbitmqadmin'],