Skip to content
Snippets Groups Projects
Verified Commit d3d917f0 authored by nd's avatar nd
Browse files

bookworm support

parent f6d16e10
Branches
Tags
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
notify: update initramfs notify: update initramfs
template: template:
src: config.j2 src: config.j2
dest: /etc/dropbear-initramfs/config dest: "{{ dropbear_initramfs_config_path }}"
mode: 0644 mode: 0644
owner: root owner: root
group: root group: root
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
notify: update initramfs notify: update initramfs
template: template:
src: authorized_keys.j2 src: authorized_keys.j2
dest: /etc/dropbear-initramfs/authorized_keys dest: "{{ dropbear_initramfs_path }}/authorized_keys"
mode: 0644 mode: 0644
owner: root owner: root
group: root group: root
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# #
# Command line options to pass to dropbear(8) # Command line options to pass to dropbear(8)
# #
# -s -> disable password login # -s -> disable password login
DROPBEAR_OPTIONS="-s" DROPBEAR_OPTIONS="-s"
...@@ -13,5 +14,18 @@ DROPBEAR_OPTIONS="-s" ...@@ -13,5 +14,18 @@ DROPBEAR_OPTIONS="-s"
# The special value 'none' keeps all interfaces up and preserves routing # The special value 'none' keeps all interfaces up and preserves routing
# tables and addresses. # tables and addresses.
# #
#IFDOWN=* #IFDOWN="*"
#
# On local (non-NFS) mounts, the network stack and dropbear are started
# asynchronously at init-premount stage. This value specifies the
# maximum number of seconds to wait (while the network/dropbear are
# being configured) at init-bottom stage before terminating dropbear and
# bringing the network down.
# If the timeout is too short, and if the boot process is not blocking
# on user input supplied via SSHd (ie no remote unlocking), then the
# initrd might pivot to init(1) too early, thereby causing a race
# condition between network configuration from initramfs vs from the
# normal system.
#
#DROPBEAR_SHUTDOWN_TIMEOUT=60
dropbear_initramfs_path: "{% if ansible_distribution_release == 'bullseye' %}/etc/dropbear-initramfs/{% else %}/etc/dropbear/initramfs/{% endif %}"
dropbear_initramfs_config_path: "{{ dropbear_initramfs_path }}{% if ansible_distribution_release == 'bullseye' %}config{% else %}dropbear.conf{% endif %}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment