community.rabbitmq
community.rabbitmq copied to clipboard
Allow all (supported) values for apply_to parameter of policies
SUMMARY
Currently this module only allows policies that apply_to
either all
, queues
or exchanges
(https://github.com/ansible-collections/community.rabbitmq/blob/1341c198b2fc85cd8f88c82212451f555c5dd4a4/plugins/modules/rabbitmq_policy.py#L34), while RabbitMQ has more options:
The "apply-to" argument can be one of the following:
"exchanges", applies to exchanges only "queues", applies to all types of queues, including streams "classic_queues", applies to classic queues only "quorum_queues", applies to quorum queues only "streams", applies to streams only "all", applies to all exchanges and queues (including streams)
(https://www.rabbitmq.com/docs/parameters#how-policies-work)
ISSUE TYPE
- Feature Idea
COMPONENT NAME
community.rabbitmq.rabbitmq_policy
ADDITIONAL INFORMATION
- I tested this with RabbitMQ 3.12
- Depending on the set tags / options, the policy will simply not become effective as a setting
ha-mode
will simply not work with a quorum queue.