Add: IOT using Mosquitto // Node red // InfluxDB // Grafana

File and folder permissions are a bitch.
Also, will only leave access to grafana and remove the rest to be accessed using ssh tunnels
This commit is contained in:
2023-07-13 14:32:17 +05:30
parent ae6fde8113
commit 774b69be38
6 changed files with 350 additions and 0 deletions

24
iot/vars/default.yml Normal file
View File

@ -0,0 +1,24 @@
---
host_directory: /var/lib/iot
mqtt_container: mosquitto
mqtt_image: eclipse-mosquitto:latest
mqtt_directory: "{{ host_directory }}/mosquitto"
nodered_container: nodered
nodered_image: nodered/node-red:latest
nodered_directory: "{{ host_directory }}/nodered"
influx_container: influxdb
influx_image: influxdb:latest
influx_directory: "{{ host_directory }}/influx"
grafana_container: grafana
grafana_image: grafana/grafana-enterprise:latest
grafana_directory: "{{ host_directory }}/grafana"
http_host: "iot.tanshu.com"
http_conf: "iot.tanshu.com.conf"
user: 'www-data'
mqtt_user: 'root'