Make enabling cloud_init optionnal

For cloud images that needs it, cloud_init can be enabled in the main.tf file. This change will allow deployments that does not require cloud_init to be supported
This commit is contained in:
Lukas Greve
2025-09-18 20:24:38 +02:00
parent 75b2ae6b40
commit 902420a3ea
6 changed files with 18 additions and 4 deletions

View File

@@ -40,6 +40,12 @@ variable "cloudinit_filename" {
default = "commoninit.iso"
}
variable "enable_cloudinit" {
description = "Enable cloud-init support"
type = bool
default = false
}
variable "ssh_key" {
description = "SSH authorized keys for cloud-init"
type = string