Rabbitmq

###Set for all vhost HA policy:

docker exec  rabbitmq_docker_conteiner rabbitmqctl list_vhosts -q --no-table-headers  | while read line ; do docker exec rabbitmq_docker_conteiner rabbitmqctl set_policy -p "$line" ha-all "" '{"ha-mode":"all","ha-sync-mode":"automatic"}'; done

###Set for all vhost permission for datadog user:

docker exec rabbitmq_docker_conteiner rabbitmqctl list_vhosts -q --no-table-headers  | while read line ; do docker exec rabbitmq_docker_conteiner rabbitmqctl set_permissions -p "$line" datadog "^aliveness-t^Ct$" "^amq\.default$" ".*" ; done