xoxys.mosquitto/templates/etc/mosquitto/conf.d/default.conf.j2
2017-12-18 09:52:02 +01:00

28 lines
553 B
Django/Jinja

## {{ ansible_managed }}
port {{ mosquitto_port }}
bind_address {{ mosquitto_bind_address }}
user {{ mosquitto_user }}
persistence_file mosquitto.db
log_dest syslog
log_dest stdout
log_dest topic
log_type error
log_type warning
log_type notice
log_type information
log_timestamp true
connection_messages true
allow_anonymous false
password_file {{ mosquitto_passwd_file }}
{% if mosquitto_tls_enabled %}
cafile {{ mosquitto_ca_file }}
certfile {{ mosquitto_cert_file }}
keyfile {{ mosquitto_private_key_file }}
require_certificate true
{% endif %}