From eeae6781756948b62b236850b4bb37e8c8f95fea Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Sun, 15 Sep 2019 17:42:02 +0200 Subject: [PATCH] torwaechter: add all necessary files for tuer_core to run under procd --- ansible/host_vars/torwaechter/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/ansible/host_vars/torwaechter/main.yml b/ansible/host_vars/torwaechter/main.yml index ea41370..768a040 100644 --- a/ansible/host_vars/torwaechter/main.yml +++ b/ansible/host_vars/torwaechter/main.yml @@ -24,6 +24,14 @@ openwrt_packages_extra: - lsblk openwrt_mixin: + /etc/default: + dirname: + /etc/hotplug.d/tty/: + dirname: + /etc/hotplug.d/usb/: + dirname: + /home: + dirname: /run: dirname: @@ -38,6 +46,24 @@ openwrt_mixin: mode: '0755' file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/update-keys/update-keys" + # door daemon init scripts and configs + /etc/init.d/tuer_core: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/initscripts/tuer_core.openwrt" + /etc/default/tuer: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/initscripts/tuer.default" + /etc/rc.d/S50tuer_core: + link: "../init.d/tuer_core" + + # hotplug files + /etc/hotplug.d/tty/door.tty: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/scripts/door.tty" + /etc/hotplug.d/tty/door.usb: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/scripts/door.usb" + /usr/local/bin/authorized_keys.sh: mode: '0755' file: "{{ global_files_dir }}/{{ inventory_hostname }}/authorized_keys.sh" -- 1.7.10.4