Skip to content

Commit

Permalink
Add a custom broker.id based in a inventory file
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Baufaker Rêgo committed Oct 9, 2023
1 parent 4f52147 commit 7ad5cc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/amq_streams_broker/templates/server.properties.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
############################# Server Basics #############################

# The id of the broker. This must be set to a unique integer for each broker.
broker.id={{ amq_streams_broker_inventory_group.index(inventory_hostname) }}
broker.id={{ broker_id | default(amq_streams_broker_inventory_group.index(inventory_hostname)) }}


############################# Socket Server Settings #############################

Expand Down

0 comments on commit 7ad5cc3

Please sign in to comment.