services: Add wifi-mqtt
This commit is contained in:
parent
3716997783
commit
1a1335f92d
4 changed files with 55 additions and 0 deletions
15
roles/services/templates/wifi-mqtt.service
Normal file
15
roles/services/templates/wifi-mqtt.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Wifi events to MQTT
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=2s
|
||||
ExecStart=/var/lib/wifi-mqtt/wifi-mqtt.py
|
||||
DynamicUser=true
|
||||
Environment="ARUBA_INSTANT_IP={{ wifi_mqtt_snmp_ip }}"
|
||||
Environment="ARUBA_INSTANT_PASSWORD={{ wifi_mqtt_snmp_password }}"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue