From 55ab45cf7513e2ca414a6418f722df775f042e57 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 8 Aug 2024 09:40:37 +0200 Subject: [PATCH] chore: remove encrypted bootstrapping password --- rocky-9/ci.pkrvars.hcl | 1 - rocky-9/data/init.ks.pkrtpl.hcl | 2 +- rocky-9/server.pkr.hcl | 2 +- rocky-9/variables.pkr.hcl | 6 ------ 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/rocky-9/ci.pkrvars.hcl b/rocky-9/ci.pkrvars.hcl index 6d0fefa..c734418 100644 --- a/rocky-9/ci.pkrvars.hcl +++ b/rocky-9/ci.pkrvars.hcl @@ -1,6 +1,5 @@ proxmox_token = "dummy" build_password = "dummy" -build_password_encrypted = "dummy" proxmox_url = "dummy" proxmox_username = "dummy" proxmox_node = "dummy" diff --git a/rocky-9/data/init.ks.pkrtpl.hcl b/rocky-9/data/init.ks.pkrtpl.hcl index a8397a4..9ead74f 100644 --- a/rocky-9/data/init.ks.pkrtpl.hcl +++ b/rocky-9/data/init.ks.pkrtpl.hcl @@ -24,7 +24,7 @@ lang ${vm_guest_os_language} keyboard ${vm_guest_os_keyboard} ### Set initial root password -rootpw --iscrypted ${build_password_encrypted} +rootpw ${build_password} ### Configure firewall settings for the system. ### --enabled reject incoming connections that are not in response to outbound requests diff --git a/rocky-9/server.pkr.hcl b/rocky-9/server.pkr.hcl index 9bd587b..07f04be 100644 --- a/rocky-9/server.pkr.hcl +++ b/rocky-9/server.pkr.hcl @@ -12,7 +12,7 @@ locals { buildtime = formatdate("YYYY-MM-DD hh:mm ZZZ", timestamp()) data_source_content = { "/ks.cfg" = templatefile("${abspath(path.root)}/data/init.ks.pkrtpl.hcl", { - build_password_encrypted = var.build_password_encrypted + build_password = var.build_password vm_guest_os_language = var.vm_guest_os_language vm_guest_os_keyboard = var.vm_guest_os_keyboard vm_guest_os_timezone = var.vm_guest_os_timezone diff --git a/rocky-9/variables.pkr.hcl b/rocky-9/variables.pkr.hcl index de7645f..d1fa25d 100644 --- a/rocky-9/variables.pkr.hcl +++ b/rocky-9/variables.pkr.hcl @@ -180,12 +180,6 @@ variable "build_password" { sensitive = true } -variable "build_password_encrypted" { - type = string - description = "The encrypted password to login the guest operating system." - sensitive = true -} - variable "build_scripts" { type = list(string) description = "A list of scripts and their relative paths to transfer and execute."