Start managing cdn.conf

This commit is contained in:
Patrik Lundin 2024-10-06 14:50:07 +02:00
parent 40036c3c32
commit e5ce5dd1cd
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -0,0 +1,19 @@
listener 8883
cafile /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/mosquitto/certs/<%= @networking['fqdn'] %>.crt
keyfile /etc/mosquitto/certs/<%= @networking['fqdn'] %>.key
require_certificate true
use_identity_as_username true
acl_file /etc/mosquitto/aclfile
log_type all
<% @bridges.each do |remote_dc, bridge_config| -%>
connection <%= @dc %>-to-<%= remote_dc %>
address <%= bridge_config['address'] %>:address <%= bridge_config['port'] %>:
topic cdn/<%= @dc %>/purge out 1
bridge_cafile /etc/mosquitto/ca_certificates/ca.crt
bridge_certfile /etc/mosquitto/certs/<%= @networking['fqdn'] %>.crt
bridge_keyfile /etc/mosquitto/certs/<%= @networking['fqdn'] %>.key
<% end -%>