Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanis committed May 10, 2024
1 parent 91d9aca commit 29401e0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cableos/cableos-installer.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ locals {
// Define Packer Source for QEMU


source "qemu" "cableos" {
source "qemu" "cableos-installer" {
boot_wait = "2s"
cpus = 2
disk_image = true
Expand All @@ -117,7 +117,7 @@ source "qemu" "cableos" {
headless = var.headless
http_directory = var.http_directory
iso_checksum = "md5:e7a29730bf6f0740ba37e9352d22b3cb"
iso_url = "build_images/${var.live_iso}"
iso_url = "${path.root}/boot-images/${var.live_iso}"
memory = 2048
qemu_binary = "qemu-system-${lookup(local.qemu_arch, var.architecture, "")}"
qemu_img_args {
Expand All @@ -142,21 +142,21 @@ source "qemu" "cableos" {
build {
name = "cableos-installer"
sources = [
"source.qemu.cableos"
"source.qemu.cableos-installer"
]

// Provisioners for installation and file extraction
provisioner "file" {
source = "buildfiles/${var.apollo_iso}"
destination = "/opt/${var.apollo_iso}"
destination = "/etc/init.d/"
sources = ["${path.root}/buildfiles/startup.sh"]
}

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

destination = "/opt/"
sources = ["${path.root}/buildfiles/${var.apollo_iso}"]
}
provisioner "shell" {

provisioner "shell-local" {
inline = [
"echo 'Files copied successfully..'"
]
Expand Down

0 comments on commit 29401e0

Please sign in to comment.