cdn-ops/global/overlay/etc/puppet/modules/cdn/templates/mqtt/aclfile.erb
Patrik Lundin 7352a20143
Start managing mqtt ACL
Include sample comsos-rules entry for testing out template
2024-10-06 14:26:10 +02:00

16 lines
414 B
Plaintext

# Clients in the local datacenter
<% @clients.each do |client| -%>
user <%= @client %>
topic readwrite cdn/<%= @dc %>/purge
topic read cdn/+/purge
<% end -%>
# Bridge queues to other datacenters
<% @bridges.each do |remote_dc, bridge_config| -%>
user <%= bridge_config['address'] %>
topic readwrite cdn/<%= @remote_dc %>/purge
<% end -%>
# This affects all clients.
pattern write $SYS/broker/connection/%c/state