salt-states/containers/zigbee2mqtt.sls

26 lines
625 B
Plaintext
Raw Permalink Normal View History

2023-06-27 07:16:37 +00:00
{% from 'lib.sls' import container_deploy with context %}
Create udev-rule for zigbee usb dongel:
file.managed:
- name: /etc/udev/rules.d/99-zigbee-serial.rules
- source: salt://containers/files/99-zigbee-serial.rules
- user: root
- group: root
- mode: "0644"
Relead udev rules for zigbee dongel:
cmd.run:
- name: udevadm control --reload-rules
- onchanges:
- file: Create udev-rule for zigbee usb dongel
Create zigbee2mqtt data folder:
file.directory:
- name: /srv/zigbee2mqtt
- user: root
- group: root
- mode: "0755"
{{ container_deploy('zigbee2mqtt') }}