Skip to content

Commit

Permalink
update linting errors and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanis committed May 10, 2024
1 parent 99bdebf commit 91d9aca
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cableos/cableos-installer.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packer {


variable "architecture" {
type = string
type = string
default = "amd64"
}
variable "boot_mode" {
Expand Down Expand Up @@ -41,11 +41,11 @@ variable "http_proxy" {
}

variable "apollo_iso" {
type = string
default = "APOLLO_PLATFORM-release-3.21.3.0-7+auto15.iso"
type = string
default = "APOLLO_PLATFORM-release-3.21.3.0-7+auto15.iso"
}
variable "live_iso" {
type = string
type = string
default = "debirf-live_bullseye_amd64.iso"
}

Expand Down Expand Up @@ -116,7 +116,7 @@ source "qemu" "cableos" {
format = "qcow2"
headless = var.headless
http_directory = var.http_directory
iso_checksum = "none"
iso_checksum = "md5:e7a29730bf6f0740ba37e9352d22b3cb"
iso_url = "build_images/${var.live_iso}"
memory = 2048
qemu_binary = "qemu-system-${lookup(local.qemu_arch, var.architecture, "")}"
Expand All @@ -140,19 +140,19 @@ source "qemu" "cableos" {

// Define Build
build {
name = "cableos-installer"
name = "cableos-installer"
sources = [
"source.qemu.cableos"
]

// Provisioners for installation and file extraction
provisioner "file" {
source = "/buildfiles/${var.apollo_iso}"
source = "buildfiles/${var.apollo_iso}"
destination = "/opt/${var.apollo_iso}"
}

provisioner "file" {
source = "/buildfiles/startup.sh"
source = "buildfiles/startup.sh"
destination = "/etc/init.d/startup.sh"

}
Expand All @@ -162,7 +162,7 @@ build {
]
}

// Post-processors to create new images and prepare for MAAS
// Post-processors to create new images and prepare for MAAS

// Create tar.gz file
post-processor "shell-local" {
Expand All @@ -180,8 +180,8 @@ build {

// Create manifest of packer objects
post-processor "manifest" {
output = "manifest.json"
strip_path = true
output = "manifest.json"
strip_path = true
}


Expand Down

0 comments on commit 91d9aca

Please sign in to comment.