Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed Jun 4, 2024
1 parent 8b933b0 commit 9662b96
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions patches/ubuntu/templates/ubuntu-22.04-arm64-aws.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,18 @@ build {
inline = ["mkdir ${var.image_folder}", "chmod 777 ${var.image_folder}"]
}

provisioner "file" {
destination = "${var.helper_script_folder}"
source = "${path.root}/../scripts/helpers"
}

provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/../scripts/build/configure-apt-mock.sh"
}

provisioner "shell" {
environment_vars = ["DEBIAN_FRONTEND=noninteractive"]
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}","DEBIAN_FRONTEND=noninteractive"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = [
"${path.root}/../scripts/build/install-ms-repos.sh",
Expand All @@ -190,11 +195,6 @@ build {
script = "${path.root}/../scripts/build/configure-limits.sh"
}

provisioner "file" {
destination = "${var.helper_script_folder}"
source = "${path.root}/../scripts/helpers"
}

provisioner "file" {
destination = "${var.installer_script_folder}"
source = "${path.root}/../scripts/build"
Expand Down
12 changes: 6 additions & 6 deletions patches/ubuntu/templates/ubuntu-22.04-x64-aws.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,18 @@ build {
inline = ["mkdir ${var.image_folder}", "chmod 777 ${var.image_folder}"]
}

provisioner "file" {
destination = "${var.helper_script_folder}"
source = "${path.root}/../scripts/helpers"
}

provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/../scripts/build/configure-apt-mock.sh"
}

provisioner "shell" {
environment_vars = ["DEBIAN_FRONTEND=noninteractive"]
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}","DEBIAN_FRONTEND=noninteractive"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = [
"${path.root}/../scripts/build/install-ms-repos.sh",
Expand All @@ -201,11 +206,6 @@ build {
script = "${path.root}/../scripts/build/configure-limits.sh"
}

provisioner "file" {
destination = "${var.helper_script_folder}"
source = "${path.root}/../scripts/helpers"
}

provisioner "file" {
destination = "${var.installer_script_folder}"
source = "${path.root}/../scripts/build"
Expand Down

0 comments on commit 9662b96

Please sign in to comment.