Compare commits

..

2 commits

Author SHA1 Message Date
9485894b71 remove unneeded echo in shutdown_command 2022-12-03 17:11:50 -06:00
c0e9a92188 rename packer build files 2022-12-03 17:02:17 -06:00
2 changed files with 3 additions and 3 deletions

View file

@ -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 = {
@ -53,7 +53,7 @@ locals {
// BLOCK: source
// Defines the builder configuration blocks.
source "vsphere-iso" "linux-ubuntu" {
source "vsphere-iso" "ubuntu-k8s" {
// vCenter Server Endpoint Settings and Credentials
vcenter_server = var.vsphere_endpoint
@ -154,7 +154,7 @@ source "vsphere-iso" "linux-ubuntu" {
build {
sources = [
"source.vsphere-iso.linux-ubuntu"
"source.vsphere-iso.ubuntu-k8s"
]
provisioner "file" {