diff --git a/rocky-9/ci.pkrvars.hcl b/rocky-9/ci.pkrvars.hcl index ad4703b..7993a3f 100644 --- a/rocky-9/ci.pkrvars.hcl +++ b/rocky-9/ci.pkrvars.hcl @@ -1,2 +1,2 @@ hcloud_token = "dummy" -build_password_encrypted = "dummy" +build_password = "dummy" diff --git a/rocky-9/data/init.ks.pkrtpl.hcl b/rocky-9/data/init.ks.pkrtpl.hcl index 521a612..6974fbd 100644 --- a/rocky-9/data/init.ks.pkrtpl.hcl +++ b/rocky-9/data/init.ks.pkrtpl.hcl @@ -26,7 +26,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 69c8ac8..8ab4331 100644 --- a/rocky-9/server.pkr.hcl +++ b/rocky-9/server.pkr.hcl @@ -10,7 +10,7 @@ packer { locals { data_source_content = 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 25cb1ec..9ff5ef8 100644 --- a/rocky-9/variables.pkr.hcl +++ b/rocky-9/variables.pkr.hcl @@ -54,13 +54,12 @@ variable "vm_guest_os_timezone" { } // Communicator Settings and Credentials -variable "build_password_encrypted" { +variable "build_password" { type = string - description = "The encrypted password to login the guest operating system." + description = "The password to login the guest operating system." sensitive = true } -// Provisioner Settings variable "build_scripts" { type = list(string) description = "A list of scripts and their relative paths to transfer and execute."