ansible-middleware / amq_streams

Apache License 2.0
8 stars 6 forks source link

Add a custom broker.id based in a inventory file #82

Closed gbaufake closed 11 months ago

gbaufake commented 1 year ago

Currently, the broker.id is based on an index of variable (amq_streams_broker_inventory_group.)

https://github.com/ansible-middleware/amq_streams/blob/7e9087c6a6e5c02ae06c2ea077f1c5560a19b53d/roles/amq_streams_broker/templates/server.properties.j2#L26

if I have the following inventory:

[brokers]
hostname inventory_hostname="kafka1" inventory_hostname_short="kafka1" broker_id="101"

It would be nice to define if broker_id for that hostname