xoxys.mosquitto/templates/etc/mosquitto/conf.d/default.conf.j2

28 lines
590 B
Plaintext
Raw Normal View History

2017-12-16 21:49:18 +00:00
## {{ ansible_managed }}
port {{ mosquitto_port }}
2017-12-17 12:37:13 +00:00
bind_address {{ mosquitto_bind_address }}
2017-12-16 21:49:18 +00:00
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
2017-12-17 12:21:46 +00:00
password_file {{ mosquitto_passwd_file }}
2017-12-18 08:52:02 +00:00
{% if mosquitto_tls_enabled %}
cafile {{ mosquitto_ca_file }}
certfile {{ mosquitto_cert_file }}
keyfile {{ mosquitto_private_key_file }}
2017-12-18 10:44:17 +00:00
require_certificate {{ mosquitto_require_certificate|lower }}
2017-12-18 08:52:02 +00:00
{% endif %}