diff --git a/manifests/install/rabbitmqadmin.pp b/manifests/install/rabbitmqadmin.pp index 12767885c..184a5258d 100644 --- a/manifests/install/rabbitmqadmin.pp +++ b/manifests/install/rabbitmqadmin.pp @@ -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']