From 5762bd0a5eeb7dcbedf7afadcc7c78e3d8353640 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 5 Dec 2025 18:33:23 +0100 Subject: [PATCH] fix: update SSH key handling in Cloud-Init user-data template --- templates/cloudinit_userdata.yaml.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/cloudinit_userdata.yaml.j2 b/templates/cloudinit_userdata.yaml.j2 index 9c86e83..5dfdfae 100644 --- a/templates/cloudinit_userdata.yaml.j2 +++ b/templates/cloudinit_userdata.yaml.j2 @@ -8,7 +8,9 @@ users: lock_passwd: false passwd: {{ ci_password | password_hash('sha512') }} ssh_authorized_keys: - - {{ lookup('file', ssh_keys_file) }} +{% for key in ssh_public_keys %} + - {{ key }} +{% endfor %} chpasswd: expire: false