Skip to content

Commit

Permalink
Merge pull request redhat-openstack#234 from misterdorm/rmqadminssl
Browse files Browse the repository at this point in the history
Use https to download rabbitmqadmin tool when $rabbitmq::ssl => true
  • Loading branch information
hunner committed Sep 8, 2014
2 parents bf59be0 + f0cdd14 commit cbda1ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/install/rabbitmqadmin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
$management_port = $rabbitmq::management_port
$default_user = $rabbitmq::default_user
$default_pass = $rabbitmq::default_pass
$protocol = $rabbitmq::ssl ? { false => 'http', default => 'https' }

staging::file { 'rabbitmqadmin':
target => '/var/lib/rabbitmq/rabbitmqadmin',
source => "http://${default_user}:${default_pass}@localhost:${management_port}/cli/rabbitmqadmin",
source => "${protocol}://${default_user}:${default_pass}@localhost:${management_port}/cli/rabbitmqadmin",
require => [
Class['rabbitmq::service'],
Rabbitmq_plugin['rabbitmq_management']
Expand Down

0 comments on commit cbda1ce

Please sign in to comment.