From 9485894b71562ee8ba81b2f4fad20adc35ab2184 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 3 Dec 2022 17:11:50 -0600 Subject: [PATCH] remove unneeded echo in shutdown_command --- packer/ubuntu-k8s.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/ubuntu-k8s.pkr.hcl b/packer/ubuntu-k8s.pkr.hcl index eff8ac4..0aa89cc 100644 --- a/packer/ubuntu-k8s.pkr.hcl +++ b/packer/ubuntu-k8s.pkr.hcl @@ -31,7 +31,7 @@ locals { build_tool = "HashiCorp Packer ${packer.version}" build_date = formatdate("YYYY-MM-DD hh:mm ZZZ", timestamp()) build_description = "Kubernetes Ubuntu 20.04 Node template\nBuild date: ${local.build_date}\nBuild tool: ${local.build_tool}" - shutdown_command = "echo '${var.build_password}' | sudo -S -E shutdown -P now" + shutdown_command = "sudo -S -E shutdown -P now" iso_paths = ["[${var.common_iso_datastore}] ${var.iso_path}/${var.iso_file}"] iso_checksum = "${var.iso_checksum_type}:${var.iso_checksum_value}" data_source_content = {