This repository has been archived on 2023-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
salt-states_old/k3s/usb-devices.sls

50 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-12-25 12:24:47 +00:00
Install PyInotify:
pkg.installed:
- name: python3-pyinotify
Add the rfxcom433 beacon file:
file.managed:
- name: /etc/salt/minion.d/beacons.conf
- source: salt://k3s/files/etc/salt/minion.d/beacons.conf
- user: root
- group: root
- mode: "0644"
Restart salt-minion:
service.running:
- name: salt-minion
- onchanges:
- file: Add the rfxcom433 beacon file
Add the rfxcom udev rule:
file.managed:
- name: /etc/udev/rules.d/90-RFXtrx433.rules
2020-12-25 16:05:06 +00:00
- source: salt://k3s/files/etc/udev/rules.d/90-RFXtrx433.rules
- user: root
- group: root
- mode: "0644"
Add the zwave udev rule:
file.managed:
- name: /etc/udev/rules.d/90-zwave.rules
- source: salt://k3s/files/etc/udev/rules.d/90-zwave.rules
2020-12-25 12:24:47 +00:00
- user: root
- group: root
- mode: "0644"
2020-12-25 16:16:50 +00:00
Add the zigbee udev rule:
file.managed:
- name: /etc/udev/rules.d/90-zigbee.rules
- source: salt://k3s/files/etc/udev/rules.d/90-zigbee.rules
- user: root
- group: root
- mode: "0644"
2020-12-25 12:24:47 +00:00
reload udev rules:
cmd.run:
- name: udevadm control --reload
- onchanges:
- file: Add the rfxcom udev rule
2020-12-25 16:05:06 +00:00
- file: Add the zwave udev rule
2020-12-25 16:16:50 +00:00
- file: Add the zigbee udev rule