diff --git a/podman/files/99-rfxcom-serial.rules b/podman/files/99-rfxcom-serial.rules new file mode 100644 index 0000000..8d0fb45 --- /dev/null +++ b/podman/files/99-rfxcom-serial.rules @@ -0,0 +1 @@ +SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="rfxcom", MODE="0666" diff --git a/podman/nodered.sls b/podman/nodered.sls index 1c311a8..075258d 100644 --- a/podman/nodered.sls +++ b/podman/nodered.sls @@ -1,4 +1,18 @@ {% from 'lib.sls' import container_deploy with context %} +Create udev-rule for rfxcom usb dongel: + file.managed: + - name: /etc/udev/rules.d/99-rfxcom-serial.rules + - source: salt://podman/files/99-rfxcom-serial.rules + - user: root + - group: root + - mode: "0644" + +Relead udev rules for rfxcom dongel: + cmd.run: + - name: udevadm control --reload-rules + - onchanges: + - file: Create udev-rule for rfxcom usb dongel + {{ container_deploy('nodered') }}