[Ubuntu] Add ssh_clear_authorized_keys to Packer template (#13136)

This commit is contained in:
Alexey-Ayupov
2025-10-07 11:05:18 +02:00
committed by GitHub
parent 35f7a33e9f
commit 610c1c15ee
2 changed files with 5 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ source "azure-arm" "image" {
os_disk_size_gb = local.image_properties.os_disk_size_gb
os_type = var.image_os_type
private_virtual_network_with_public_ip = var.private_virtual_network_with_public_ip
ssh_clear_authorized_keys = var.ssh_clear_authorized_keys
temp_resource_group_name = var.temp_resource_group_name
virtual_network_name = var.virtual_network_name
virtual_network_resource_group_name = var.virtual_network_resource_group_name

View File

@@ -102,6 +102,10 @@ variable "source_image_version" {
type = string
default = "latest"
}
variable "ssh_clear_authorized_keys" {
type = bool
default = true
}
variable "temp_resource_group_name" {
type = string
default = "${env("TEMP_RESOURCE_GROUP_NAME")}"