Improve naming and architecture listing

This commit is contained in:
Greg Hellings
2023-11-28 14:02:55 -06:00
parent e6b8a19397
commit 86dfe113a0
2 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -16,10 +16,14 @@ packer {
version = ">= 1.0" version = ">= 1.0"
source = "github.com/hashicorp/vmware" source = "github.com/hashicorp/vmware"
} }
hyperv = { hyperv = {
version = "= 1.1.1" version = "= 1.1.1"
source = "github.com/hashicorp/hyperv" source = "github.com/hashicorp/hyperv"
} }
virtualbox = {
source = "github.com/hashicorp/virtualbox"
version = "~> 1"
}
} }
} }
@@ -69,7 +73,7 @@ build {
post-processor "vagrant-cloud" { post-processor "vagrant-cloud" {
name = "upload" name = "upload"
access_token = var.vagrant_cloud_token access_token = var.vagrant_cloud_token
architecture = var.architecture architecture = var.arch
box_tag = "boxen/${local.name}" box_tag = "boxen/${local.name}"
default_architecture = "amd64" default_architecture = "amd64"
version = var.build version = var.build
+1 -1
View File
@@ -75,7 +75,7 @@ variable "http_directory" {
} }
locals { locals {
name = "${var.distro}-${var.version}-${var.arch}" name = "${var.distro}-${var.version}"
description = templatefile("../README.box.md", { description = templatefile("../README.box.md", {
distro = var.distro distro = var.distro
arch = var.arch arch = var.arch