Sha256: 9f3960ea82127193e93666ebb32fda114f20105f1e5a8515c04c302b009fbbec
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
#!/usr/bin/env ruby $ctl = ENV["AMQP_GEM_RABBITMQCTL"] || ENV["RABBITMQCTL"] || "sudo rabbitmqctl" $plugins = ENV["AMQP_GEM_RABBITMQ_PLUGINS"] || ENV["RABBITMQ_PLUGINS"] || "sudo rabbitmq-plugins" def rabbit_control(args) command = "#{$ctl} #{args}" system command end def rabbit_plugins(args) command = "#{$plugins} #{args}" system command end # guest:guest has full access to / rabbit_control 'add_vhost /' rabbit_control 'add_user guest guest' rabbit_control 'set_permissions -p / guest ".*" ".*" ".*"' # amqp_gem:amqp_gem_password has full access to amqp_gem_testbed rabbit_control 'add_vhost amqp_gem_testbed' rabbit_control 'add_user amqp_gem amqp_gem_password' rabbit_control 'set_permissions -p amqp_gem_testbed amqp_gem ".*" ".*" ".*"' # amqp_gem_reader:reader_password has read access to amqp_gem_testbed rabbit_control 'add_user amqp_gem_reader reader_password' rabbit_control 'clear_permissions -p amqp_gem_testbed guest' rabbit_control 'set_permissions -p amqp_gem_testbed amqp_gem_reader "^---$" "^---$" ".*"' # requires RabbitMQ 3.0+ # $RABBITMQ_PLUGINS enable rabbitmq_consistent_hash_exchange # Reduce retention policy for faster publishing of stats rabbit_control "eval 'supervisor2:terminate_child(rabbit_mgmt_sup_sup, rabbit_mgmt_sup), application:set_env(rabbitmq_management, sample_retention_policies, [{global, [{605, 1}]}, {basic, [{605, 1}]}, {detailed, [{10, 1}]}]), rabbit_mgmt_sup_sup:start_child().'" rabbit_control "eval 'supervisor2:terminate_child(rabbit_mgmt_agent_sup_sup, rabbit_mgmt_agent_sup), application:set_env(rabbitmq_management_agent, sample_retention_policies, [{global, [{605, 1}]}, {basic, [{605, 1}]}, {detailed, [{10, 1}]}]), rabbit_mgmt_agent_sup_sup:start_child().'"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amqp-1.8.0 | bin/ci/before_build |