From 59826cb7a9897ac56322d92a13fd6a34e92c1cfe Mon Sep 17 00:00:00 2001 From: rblundon Date: Mon, 22 Sep 2025 10:40:52 -0500 Subject: [PATCH] update key to variable --- infra-config/04-vm-templates/ubuntu-24.04.03/files/ansible | 7 ------- .../04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl | 2 +- .../04-vm-templates/ubuntu-24.04.03/variables.pkr.hcl | 7 +++++++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 infra-config/04-vm-templates/ubuntu-24.04.03/files/ansible diff --git a/infra-config/04-vm-templates/ubuntu-24.04.03/files/ansible b/infra-config/04-vm-templates/ubuntu-24.04.03/files/ansible deleted file mode 100644 index fce2716..0000000 --- a/infra-config/04-vm-templates/ubuntu-24.04.03/files/ansible +++ /dev/null @@ -1,7 +0,0 @@ ------BEGIN OPENSSH PRIVATE KEY----- -b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW -QyNTUxOQAAACDZ0jP/XzvK8/2pqpMqBlM1CjTc85rUlz8Dgq9TvcyjTgAAAJDiCwTX4gsE -1wAAAAtzc2gtZWQyNTUxOQAAACDZ0jP/XzvK8/2pqpMqBlM1CjTc85rUlz8Dgq9TvcyjTg -AAAEAiBuv1SaNw78SpxQ2d+Z1ZRRPuZl9MRulSHySNiV6NtNnSM/9fO8rz/amqkyoGUzUK -NNzzmtSXPwOCr1O9zKNOAAAAB2Fuc2libGUBAgMEBQY= ------END OPENSSH PRIVATE KEY----- diff --git a/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl b/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl index a1b5e91..5b2a8fb 100755 --- a/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl +++ b/infra-config/04-vm-templates/ubuntu-24.04.03/ubuntu-24.04.pkr.hcl @@ -95,7 +95,7 @@ source "proxmox-iso" "ubuntu-2404" { ssh_timeout = "120m" ssh_username = "${var.ssh_username}" # ssh_password = "${var.ssh_password}" - ssh_private_key_file = "./files/ansible" + ssh_private_key_file = "${var.ssh_private_key}" template_description = "Ubuntu 24.04.3, generated on ${timestamp()}" template_name = "${var.vm_name}" } diff --git a/infra-config/04-vm-templates/ubuntu-24.04.03/variables.pkr.hcl b/infra-config/04-vm-templates/ubuntu-24.04.03/variables.pkr.hcl index db10c79..61d6b11 100644 --- a/infra-config/04-vm-templates/ubuntu-24.04.03/variables.pkr.hcl +++ b/infra-config/04-vm-templates/ubuntu-24.04.03/variables.pkr.hcl @@ -142,3 +142,10 @@ variable "ssh_password" { default = "" sensitive = true } + +variable "ssh_private_key" { + type = string + description = "The private key to use to authenticate over SSH." + default = "" + sensitive = true +} \ No newline at end of file