Skip to content

Commit

Permalink
Merge pull request redhat-openstack#280 from cmurphy/ssl
Browse files Browse the repository at this point in the history
Installation of the rabbitmqadmin script fails when SSL is enabled. This...
  • Loading branch information
Morgan Haskel committed Dec 17, 2014
2 parents 26a74ae + 2ece861 commit ac046ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/install/rabbitmqadmin.pp
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
#
class rabbitmq::install::rabbitmqadmin {

$management_port = $rabbitmq::management_port
if($rabbitmq::ssl) {
$management_port = $rabbitmq::ssl_management_port
}
else {
$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 => "${protocol}://${default_user}:${default_pass}@localhost:${management_port}/cli/rabbitmqadmin",
curl_option => '--noproxy localhost',
curl_option => '-k --noproxy localhost',
wget_option => '--no-proxy',
require => [
Class['rabbitmq::service'],
Expand Down

0 comments on commit ac046ee

Please sign in to comment.