---
-ssh_keys_tuergit: "{{ ssh_keys_root }}"
+ssh_users_tuergit: "{{ user_groups.noc | union(['fgenesis']) }}"
+openwrt_variant: openwrt
+openwrt_release: 18.06.4
openwrt_arch: x86
openwrt_target: geode
openwrt_output_image_suffixes:
- combined-ext4.img.gz
- - combined-squashfs.img
+ - combined-squashfs.img.gz
openwrt_packages_extra:
- "-dropbear"
- screen
- sudo
- usbutils
+ - rsync
+ - lsblk
openwrt_mixin:
+ /etc/default:
+ dirname:
+ /etc/hotplug.d/tty/:
+ dirname:
+ /etc/hotplug.d/usb/:
+ dirname:
+ /home:
+ dirname:
+ /run:
+ dirname:
+
# Go binaries
/usr/local/bin/door_client:
mode: '0755'
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"
AuthorizedKeysCommandUser tuergit
/etc/ssh/authorized_keys.d/root:
- content: |-
- {% for key in ssh_keys_root %}
- {{ key }}
- {% endfor %}
+ content: "{{ ssh_users_root | user_ssh_keys(users) | join('\n') }}\n"
/etc/ssh/authorized_keys.d/tuergit:
- content: |-
- {% for key in ssh_keys_tuergit %}
- {{ key }}
- {% endfor %}
+ content: "{{ ssh_users_tuergit | user_ssh_keys(users) | join('\n') }}\n"
openwrt_uci:
system: