Skip to content

Commit

Permalink
update Packer to 1.9.4 (#12)
Browse files Browse the repository at this point in the history
* update Packer to 1.9.4

* use e2-standard-4 as no visible quota
  • Loading branch information
VJftw authored Oct 16, 2023
1 parent 4e5c8ce commit 2529838
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
7 changes: 6 additions & 1 deletion flavours/arch/xfce4.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ source "googlecompute" "arch" {
disable_default_service_account = true
disk_type = "pd-ssd"
image_name = "arch-xfce4-${var.version_suffix}"
machine_type = "c2-standard-4"

// 2023-10-13 - Pricing
// c3-standard-4 (cpu quota limit: 8): $0.091864 (spot)
// e2-standard-4 (cpu quota limit: 8): $0.0555 (spot)
// e2-standard-4 : $0.044216 (spot)
machine_type = "e2-standard-4"
metadata = {
enable-oslogin = "false"
}
Expand Down
2 changes: 1 addition & 1 deletion flavours/debian/kali/xfce4.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source "googlecompute" "kali" {
disable_default_service_account = true
disk_type = "pd-ssd"
image_name = "kali-xfce4-${var.version_suffix}"
machine_type = "c2-standard-4"
machine_type = "e2-standard-4"
metadata = {
enable-oslogin = "false"
}
Expand Down
2 changes: 1 addition & 1 deletion flavours/debian/xfce4.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source "googlecompute" "debian" {
disable_default_service_account = true
disk_type = "pd-ssd"
image_name = "debian-xfce4-${var.version_suffix}"
machine_type = "e2-medium"
machine_type = "e2-standard-4"
metadata = {
enable-oslogin = "false"
}
Expand Down
17 changes: 8 additions & 9 deletions third_party/binary/BUILD
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

PACKER_VERSION = "1.8.0"
PACKER_VERSION = "1.9.4"

remote_file(
name = "packer",
url = f"https://releases.hashicorp.com/packer/{PACKER_VERSION}/packer_{PACKER_VERSION}_{CONFIG.OS}_{CONFIG.ARCH}.zip",
extract = True,
binary = True,
extract = True,
hashes = [
"94c5d65386fa8f17e36d3496fbbdf18d3bfab01306aa8000c14656b63070b7c2", # linux_amd64
"6cd5269c4245aa8c99e551d1b862460d63fe711c58bec618fade25f8492e80d9", # linux_amd64
],
url = f"https://releases.hashicorp.com/packer/{PACKER_VERSION}/packer_{PACKER_VERSION}_{CONFIG.OS}_{CONFIG.ARCH}.zip",
visibility = ["PUBLIC"],
)

Expand All @@ -17,10 +16,10 @@ JQ_VERSION = "1.6"
remote_file(
name = "jq",
out = "jq",
url = f"https://github.com/stedolan/jq/releases/download/jq-{JQ_VERSION}/jq-{CONFIG.OS}64",
binary = True,
visibility = ["PUBLIC"],
hashes = [
"af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44", # linux64
]
"af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44", # linux64
],
url = f"https://github.com/stedolan/jq/releases/download/jq-{JQ_VERSION}/jq-{CONFIG.OS}64",
visibility = ["PUBLIC"],
)

0 comments on commit 2529838

Please sign in to comment.