Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Add shovel config
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshpg committed Apr 11, 2019
1 parent e117efc commit 4c5ffe5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rabbitmq/files/shovel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
## Create shovel users-forward-converter-delta

rabbitmqctl -p users-api set_parameter shovel users-forward-converter-delta '{"src-protocol": "amqp091", "src-uri": "amqp://usersapi@/users-api", "src-exchange": "users-api", "dest-protocol": "amqp091", "dest-uri": "amqp://data-bridge@/data-bridge", "dest-exchange": "forward-converter", "ack-mode": "on-confirm","src-delete-after": "never"}'
7 changes: 7 additions & 0 deletions rabbitmq/shovel-config.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include:
- rabbitmq

create_dynamic_shovel:
cmd.script:
- source: salt://rmq/files/shovel.sh
- unless: rabbitmqctl eval 'rabbit_shovel_status:status().' | grep running

0 comments on commit 4c5ffe5

Please sign in to comment.