We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26a74ae + 2ece861 commit ac046eeCopy full SHA for ac046ee
1 file changed
manifests/install/rabbitmqadmin.pp
@@ -1,15 +1,21 @@
1
#
2
class rabbitmq::install::rabbitmqadmin {
3
4
- $management_port = $rabbitmq::management_port
+ if($rabbitmq::ssl) {
5
+ $management_port = $rabbitmq::ssl_management_port
6
+ }
7
+ else {
8
+ $management_port = $rabbitmq::management_port
9
10
+
11
$default_user = $rabbitmq::default_user
12
$default_pass = $rabbitmq::default_pass
13
$protocol = $rabbitmq::ssl ? { false => 'http', default => 'https' }
14
15
staging::file { 'rabbitmqadmin':
16
target => '/var/lib/rabbitmq/rabbitmqadmin',
17
source => "${protocol}://${default_user}:${default_pass}@localhost:${management_port}/cli/rabbitmqadmin",
- curl_option => '--noproxy localhost',
18
+ curl_option => '-k --noproxy localhost',
19
wget_option => '--no-proxy',
20
require => [
21
Class['rabbitmq::service'],
0 commit comments