ezmobius / nanite

self assembling fabric of ruby daemons
Apache License 2.0
735 stars 64 forks source link

Example setup is out of date for recent RabbitMQ versions #1

Closed prb closed 15 years ago

prb commented 15 years ago

With RabbitMQ 1.5.4, some of the commands (permissioning) in the examples/rabbitconf.rb fail. These failures don't affect the functioning of the examples, but they don't exactly inspire user confidence, either...

There are also some places in the examples where hardcoded paths are still in place, e.g., examples/crew.rb.

masonlee commented 15 years ago

Ran into the same thing here.

ronald commented 15 years ago

summary of similarities and differnces

sudo rabbitmqctl add_vhost /nanite sudo rabbitmqctl add_user mapper testing sudo rabbitmqctl add_user nanite testing

Version 1.5.x sudo rabbitmqctl map_user_vhost mapper /nanite sudo rabbitmqctl map_user_vhost nanite /nanite

Version 1.6.x sudo rabbitmqctl set_permissions -p /nanite mapper '.' '.' '.' sudo rabbitmqctl set_permissions -p /nanite nanite '.' '.' '.'

ezmobius commented 15 years ago

Yeah this is unfortunate that rabbit has changed between versions. The scripts right now will run both of these settings which will look like it failed for some commands but will in the end leave you with a working rabbitmq server setup as it will run the proper command for whichever version of rabbit you have.

I'm going to close this ticket with a caveat that you can safely ignore the errors and still end up with a working system.