Sha256: 1f0166bc1db870a12d2a682374d831d803ecd3b7feabfd91e72078b0c30e4ddd

Contents?: true

Size: 829 Bytes

Versions: 24

Compression:

Stored size: 829 Bytes

Contents

#!/bin/sh

${RABBITMQCTL:="sudo rabbitmqctl"}
${RABBITMQ_PLUGINS:="sudo rabbitmq-plugins"}

# guest:guest has full access to /

$RABBITMQCTL add_vhost /
$RABBITMQCTL add_user guest guest
$RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*"


# amqp_gem:amqp_gem_password has full access to amqp_gem_testbed

$RABBITMQCTL add_vhost amqp_gem_testbed
$RABBITMQCTL add_user amqp_gem amqp_gem_password
$RABBITMQCTL set_permissions -p amqp_gem_testbed amqp_gem ".*" ".*" ".*"


# amqp_gem_reader:reader_password has read access to amqp_gem_testbed

$RABBITMQCTL add_user amqp_gem_reader reader_password
$RABBITMQCTL clear_permissions -p amqp_gem_testbed guest
$RABBITMQCTL set_permissions -p amqp_gem_testbed amqp_gem_reader "^---$" "^---$" ".*"

# requires RabbitMQ 3.0+
# $RABBITMQ_PLUGINS enable rabbitmq_consistent_hash_exchange

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
amqp-1.7.0 bin/ci/before_build.sh
amqp-1.6.0 bin/ci/before_build.sh
amqp-1.5.3 bin/ci/before_build.sh
amqp-1.5.2 bin/ci/before_build.sh
amqp-1.5.1 bin/ci/before_build.sh
amqp-1.5.0 bin/ci/before_build.sh
amqp-1.4.2 bin/ci/before_build.sh
amqp-1.4.1 bin/ci/before_build.sh
amqp-1.4.0 bin/ci/before_build.sh
amqp-1.3.0 bin/ci/before_build.sh
amqp-1.2.1 bin/ci/before_build.sh
amqp-1.2.0 bin/ci/before_build.sh
amqp-1.1.8 bin/ci/before_build.sh
amqp-1.1.7 bin/ci/before_build.sh
amqp-1.1.6 bin/ci/before_build.sh
amqp-1.1.5 bin/ci/before_build.sh
amqp-1.1.4 bin/ci/before_build.sh
amqp-1.1.3 bin/ci/before_build.sh
amqp-1.1.2 bin/ci/before_build.sh
amqp-1.1.1 bin/ci/before_build.sh