Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rabbitmq create queue after rebuilding cluster from scratch
#!/usr/bin/env bash
#
# After rebuilding rabbitmq cluster on openstack-ansible following script will help to create queues.
#
# https://access.redhat.com/articles/1167113
cinder_rabbitmq_password=<blah>
nova_rabbitmq_password=<blah>
neutron_rabbitmq_password=<blah>
heat_rabbitmq_password=<blah>
glance_rabbitmq_password=<blah>
ceilometer_rabbitmq_rpc_password=<blah>
rabbitmqctl add_user cinder $cinder_rabbitmq_password
rabbitmqctl add_user nova $nova_rabbitmq_password
rabbitmqctl add_user neutron $neutron_rabbitmq_password
rabbitmqctl add_user heat $heat_rabbitmq_password
rabbitmqctl add_user glance $glance_rabbitmq_password
rabbitmqctl add_user ceilometer $ceilometer_oslomsg_rpc_password
rabbitmqctl add_vhost /cinder
rabbitmqctl add_vhost /nova
rabbitmqctl add_vhost /neutron
rabbitmqctl add_vhost /heat
rabbitmqctl add_vhost /glance
rabbitmqctl add_vhost /ceilometer
rabbitmqctl set_permissions cinder -p /cinder ".*" ".*" ".*"
rabbitmqctl set_permissions nova -p /nova ".*" ".*" ".*"
rabbitmqctl set_permissions neutron -p /neutron ".*" ".*" ".*"
rabbitmqctl set_permissions heat -p /heat ".*" ".*" ".*"
rabbitmqctl set_permissions glance -p /glance ".*" ".*" ".*"
rabbitmqctl set_permissions ceilometer -p /ceilometer ".*" ".*" ".*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment