documentation of hack to make door_daemon run on openwrt based torwaechter
[noc.git] / ansible / roles / openwrt / image / tasks / door_daemon.yml
1 ---
2
3 # FIXME - only used as a notepad for necessary steps
4 #
5 #
6 ## Document current state (hack to make it just work till next reboot)
7 #
8 # - does not work after reboot, needs to be manually synced over
9 # - wrong locations because ext4 from torwaechter is RO because of fs-errors
10 # - /run is missing on torwaechter? (is the latest ansible applied on torwaechter?)
11 # - properly run as tuerd (just guessed, but user/groups seem to be thought for this)
12 #
13 ## Open Questions
14 #
15 # - how to integrate updates of key file (currently just synced once)
16 # - where to store key file
17 #
18 ## TODO
19 #
20 # - proper rc.common init script (just put into start()/stop()/restart() functions)
21 # - start at boot, create a boot() function and call start there in the init script
22 # - check status of door_client and open/close via ssh
23 #
24 ## CMDs to make the hack work
25 #
26 # files for usb device /dev/door (available on device, but could not find them in any repo)
27 #   rsync door_and_sensors/scripts/door.tty root@torwaechter.mgmt.realraum.at:/etc/hotplug.d/tty/
28 #   rsync door_and_sensors/scripts/door.usb root@torwaechter.mgmt.realraum.at:/etc/hotplug.d/usb/
29
30 # files for door_daemon
31 #   rsync door_and_sensors/initscripts/tuer_core.openwrt root@torwaechter.mgmt.realraum.at:/tmp/tuer_core
32 #   rsync door_and_sensors/initscripts/tuer.default root@torwaechter.mgmt.realraum.at:/tmp/tuer
33 #   rsync keys/keys root@torwaechter.mgmt.realraum.at:/tmp/keys