community.rabbitmq icon indicating copy to clipboard operation
community.rabbitmq copied to clipboard

Allow all (supported) values for apply_to parameter of policies

Open frittentheke opened this issue 4 months ago • 0 comments

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.

frittentheke avatar Mar 01 '24 09:03 frittentheke