From f861bb3aca4b79a593c9463fe759a29044f95540 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 5 Jan 2023 10:20:40 +0100 Subject: [PATCH] added rfxcom device --- podman/files/99-rfxcom-serial.rules | 1 + podman/nodered.sls | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 podman/files/99-rfxcom-serial.rules 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') }}