2018-11-04 22:21:13 +00:00
|
|
|
---
|
2018-11-04 23:10:22 +00:00
|
|
|
mosquitto_base_dir: /etc/mosquitto
|
|
|
|
mosquitto_pid_file: /var/run/mosquitto.pid
|
2017-12-16 21:00:52 +00:00
|
|
|
mosquitto_user: mosquitto
|
|
|
|
mosquitto_group: mosquitto
|
2018-11-04 23:10:22 +00:00
|
|
|
|
2017-12-18 08:52:02 +00:00
|
|
|
mosquitto_port: 1883
|
2017-12-17 13:18:23 +00:00
|
|
|
mosquitto_bind_address: "{{ ansible_default_ipv4.address }}"
|
2018-11-04 23:10:22 +00:00
|
|
|
|
2019-08-13 07:47:25 +00:00
|
|
|
mosquitto_packages_extra: []
|
2018-11-04 23:10:22 +00:00
|
|
|
mosquitto_persistence_enabled: False
|
|
|
|
mosquitto_persistence_path: /var/lib/mosquitto/mosquitto.db
|
2017-12-18 10:44:17 +00:00
|
|
|
|
2018-11-05 19:15:12 +00:00
|
|
|
mosquitto_password_auth_enabled: False
|
|
|
|
mosquitto_password_auth_file: "{{ mosquitto_base_dir }}/passwd"
|
2019-08-27 06:48:09 +00:00
|
|
|
mosquitto_password_auth_users: []
|
2019-10-18 07:50:23 +00:00
|
|
|
# @var mosquitto_password_auth_users:example: >
|
2019-08-27 06:48:09 +00:00
|
|
|
# mosquitto_password_auth_users:
|
|
|
|
# - name: admin
|
|
|
|
# password: mysecret
|
|
|
|
# state: present
|
|
|
|
# - name: user1
|
|
|
|
# password: very_secure
|
|
|
|
# state: absent
|
2019-10-18 07:50:23 +00:00
|
|
|
# @end
|
2018-11-05 19:23:54 +00:00
|
|
|
|
2018-11-05 19:15:12 +00:00
|
|
|
mosquitto_acl_enabled: False
|
|
|
|
mosquitto_acl_file: "{{ mosquitto_base_dir }}/aclfile"
|
2019-08-27 06:48:09 +00:00
|
|
|
mosquitto_acl: []
|
2019-10-18 07:50:23 +00:00
|
|
|
# @var mosquitto_acl:example: >
|
2019-08-27 06:48:09 +00:00
|
|
|
# mosquitto_acl:
|
|
|
|
# - name: iot
|
|
|
|
# user: admin
|
2019-08-27 06:51:37 +00:00
|
|
|
# acls:
|
|
|
|
# - acl_base: topic # (topic|pattern, defaults to topic)
|
|
|
|
# acl_topic: "#"
|
|
|
|
# acl_policy: readwrite
|
2019-08-27 06:48:09 +00:00
|
|
|
# - name: readonly_iot
|
|
|
|
# user: user1
|
2019-08-27 06:51:37 +00:00
|
|
|
# acls:
|
|
|
|
# - acl_base: topic
|
|
|
|
# acl_topic: my/devices
|
|
|
|
# acl_policy: readwrite
|
2019-10-18 07:50:23 +00:00
|
|
|
# @end
|
2018-11-07 19:44:06 +00:00
|
|
|
|
2017-12-18 10:44:17 +00:00
|
|
|
mosquitto_tls_enabled: False
|
2018-11-07 22:05:47 +00:00
|
|
|
mosquitto_tls_ciphers:
|
|
|
|
- DEFAULT
|
|
|
|
- "!aNULL"
|
|
|
|
- "!eNULL"
|
|
|
|
- "!LOW"
|
|
|
|
- "!EXPORT"
|
|
|
|
- "!SSLv2"
|
|
|
|
- "@STRENGTH"
|
2018-11-04 23:10:22 +00:00
|
|
|
mosquitto_ca_path: /etc/pki/tls/certs/
|
2018-11-07 22:05:47 +00:00
|
|
|
mosquitto_tls_cert_source: mycert.pem
|
|
|
|
mosquitto_tls_key_source: mykey.pem
|
2018-11-07 22:19:00 +00:00
|
|
|
mosquitto_tls_cert_path: "{{ mosquitto_base_dir }}/tls/certs/mycert.pem"
|
|
|
|
mosquitto_tls_key_path: "{{ mosquitto_base_dir }}/tls/private/mykey.pem"
|