mosquitto: Initial version of role
This commit is contained in:
parent
b61781bd94
commit
e7cc5866c8
3 changed files with 80 additions and 0 deletions
17
roles/mosquitto/templates/mosquitto.conf.j2
Normal file
17
roles/mosquitto/templates/mosquitto.conf.j2
Normal file
|
@ -0,0 +1,17 @@
|
|||
# authentication
|
||||
acl_file /etc/mosquitto/acl.conf
|
||||
password_file /etc/mosquitto/passwd
|
||||
allow_anonymous false
|
||||
|
||||
# listen to mqtt
|
||||
listener 1883
|
||||
protocol mqtt
|
||||
|
||||
# listen to mqtt over websockets
|
||||
listener 8883
|
||||
protocol websockets
|
||||
|
||||
# tls options
|
||||
certfile {{ tls_certs }}/{{ inventory_hostname }}.crt
|
||||
keyfile {{ tls_private }}/{{ inventory_hostname }}.key
|
||||
cafile {{ tls_certs }}/ca.crt
|
Loading…
Add table
Add a link
Reference in a new issue