rabbitmq cluster / osci queues: adjust so playbook doesn't fail on trying to change queues

The osci queue's have changed since this playbook last completed.
The ttl changed and the routing keys have changed.
The ansible rabbitmq module can't change these things on already created
queues because the api doesn't allow it. This makes this playbook fail
with:

"RabbitMQ RESTAPI doesn't support attribute changes for existing
queues"

So, for now, set the ttl to what it already is, and don't change the
routing keys at all. Hopefully this will get it to complete and osci can
manage at least routing keys themseleves wherever they do that.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-01-28 13:48:17 -08:00
parent 24e86b78ec
commit dbd763816b
2 changed files with 3 additions and 5 deletions

View file

@ -31,11 +31,7 @@
vars:
username: osci-pipelines{{ env_suffix }}
queue_name: "{{ osci_pipeline_queue }}{{ env_suffix }}"
# TTL: 5 days (in miliseconds)
message_ttl: 432000000
routing_keys:
# This routing key is for testing purposes only
- "org.centos.ci.#"
message_ttl: 864000000
loop:
- osci-pipelines-queue-0
- osci-pipelines-queue-1