ssh public key now defined as variable. User can define it under the main deployment file

This commit is contained in:
Lukas Greve
2025-09-10 20:53:54 +02:00
parent af31f8c4b2
commit 727903412f
4 changed files with 12 additions and 13 deletions

View File

@@ -0,0 +1,10 @@
#cloud-config
disable_root: true
users:
- name: groot
sudo: ALL=(ALL) NOPASSWD:ALL
groups: wheel,sudo,adm
shell: /bin/bash
ssh_authorized_keys:
- ${ssh_key}
ssh_pwauth: false

View File

@@ -42,8 +42,7 @@ variable "cloudinit_filename" {
variable "ssh_key" {
description = "SSH authorized keys for cloud-init"
type = list(string)
default = []
type = string
}
variable "user_data" {