Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amended to get photon to find its kickstart script #158

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ docs-rendered/*
packer-plugin-mondoo
packer-plugin-cnspec
.docs
centos-7-x86_64.vsphere.local.json
centos-7-x86_64.vsphere.local.json
examples/*/*/manifests/*
examples/*/*/artifacts/*
Empty file.
Empty file.
6 changes: 3 additions & 3 deletions examples/packer-vsphere/photon5/photon.auto.pkrvars.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ vm_network_card = "vmxnet3"
// Removable Media Settings
iso_path = "packer_cache/"
iso_file = "photon-5.0-dde71ec57.x86_64.iso"
iso_url = "https://packages.vmware.com/photon/5.0/GA/iso/photon-5.0-dde71ec57.aarch64.iso"
iso_checksum_type = "sha256"
iso_checksum_value = "06f4b20d3097fcebc3ea067e41e4fb64ffe41828bdb9fa96cebc7a49f290c0d9"
iso_url = "https://packages.vmware.com/photon/5.0/GA/iso/photon-5.0-dde71ec57.x86_64.iso"
iso_checksum_type = "sha512"
iso_checksum_value = "6a7a258399a258da742032987c043ab25503698d35edafaf1ae000f12127da1a161d8b84caa17fd8f23d129e81e1faa7ab087c20ab9229772a643f8f9475305f"

// Boot Settings
vm_boot_order = "disk,cdrom"
Expand Down
6 changes: 3 additions & 3 deletions examples/packer-vsphere/photon5/photon.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ locals {
build_description = "Version: ${local.build_version}\nBuilt on: ${local.build_date}\n${local.build_by}"
iso_paths = ["[${var.common_iso_datastore}] ${var.iso_path}/${var.iso_file}"]
iso_checksum = "${var.iso_checksum_type}:${var.iso_checksum_value}"
manifest_date = formatdate("YYYY-MM-DD hh:mm:ss", timestamp())
manifest_date = formatdate("YYYY-MM-DD'T'hhmmss'Z'", timestamp())
manifest_path = "${path.cwd}/manifests/"
manifest_output = "${local.manifest_path}${local.manifest_date}.json"
ovf_export_path = "${path.cwd}/artifacts/${local.vm_name}"
Expand All @@ -54,8 +54,8 @@ locals {
build_password_encrypted = var.build_password_encrypted
})
}
data_source_command = var.common_data_source == "http" ? "ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.json" : "ks=/dev/sr1:/ks.json"
vm_name = "${var.vm_guest_os_family}-${var.vm_guest_os_name}-${var.vm_guest_os_version}-${local.build_version}"
data_source_command = var.common_data_source == "http" ? "ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.json" : "ks=/dev/sr2:/ks.json"
vm_name = "${var.vm_name}"
bucket_name = replace("${var.vm_guest_os_family}-${var.vm_guest_os_name}-${var.vm_guest_os_version}", ".", "")
bucket_description = "${var.vm_guest_os_family} ${var.vm_guest_os_name} ${var.vm_guest_os_version}"
}
Expand Down
4 changes: 4 additions & 0 deletions examples/packer-vsphere/photon5/variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,7 @@ variable "communicator_timeout" {
type = string
description = "The timeout for the communicator protocol."
}

variable "vm_name" {
type = string
}