mirror of
https://github.com/jbowdre/vsphere-k8s.git
synced 2024-11-21 15:42:19 +00:00
Compare commits
2 commits
c2dc069959
...
9485894b71
Author | SHA1 | Date | |
---|---|---|---|
9485894b71 | |||
c0e9a92188 |
2 changed files with 3 additions and 3 deletions
|
@ -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" {
|
Loading…
Reference in a new issue