Sha256: 6cb4f1ae2952cca609a25b343acb6deb6f3532b45b7fbb39273bec860342c7d9

Contents?: true

Size: 916 Bytes

Versions: 8

Compression:

Stored size: 916 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 ".*" ".*" ".*"


# bunny_gem:bunny_password has full access to bunny_testbed

$RABBITMQCTL add_vhost bunny_testbed
$RABBITMQCTL add_user bunny_gem bunny_password
$RABBITMQCTL set_permissions -p bunny_testbed bunny_gem ".*" ".*" ".*"


# guest:guest has full access to bunny_testbed

$RABBITMQCTL set_permissions -p bunny_testbed guest ".*" ".*" ".*"


# bunny_reader:reader_password has read access to bunny_testbed

$RABBITMQCTL add_user bunny_reader reader_password
$RABBITMQCTL clear_permissions -p bunny_testbed guest
$RABBITMQCTL set_permissions -p bunny_testbed bunny_reader "^---$" "^---$" ".*"

# requires RabbitMQ 3.0+
# $RABBITMQ_PLUGINS enable rabbitmq_consistent_hash_exchange

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bunny-0.9.0.rc2 bin/ci/before_build.sh
bunny-0.9.0.rc1 bin/ci/before_build.sh
bunny-0.9.0.pre13 bin/ci/before_build.sh
bunny-0.9.0.pre12 bin/ci/before_build.sh
bunny-0.9.0.pre11 bin/ci/before_build.sh
bunny-0.9.0.pre10 bin/ci/before_build.sh
bunny-0.9.0.pre9 bin/ci/before_build.sh
bunny-0.9.0.pre8 bin/ci/before_build.sh