Skip to content

Commit

Permalink
GCP tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Jun 27, 2023
1 parent 4b0a460 commit d23aae2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/packer-basic-example/build-gcp.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source "googlecompute" "ubuntu-bionic" {
image_family = "terratest"
image_name = "terratest-packer-example-${formatdate("YYYYMMDD-hhmm", timestamp())}"
project_id = var.gcp_project_id
source_image_family = "ubuntu-1804-lts"
source_image_family = "ubuntu-2204-lts"
ssh_username = "ubuntu"
zone = var.gcp_zone
}
Expand Down
4 changes: 2 additions & 2 deletions examples/terraform-gcp-hello-world-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ resource "google_compute_instance" "example" {
machine_type = "f1-micro"
zone = "us-east1-b"

# website::tag::2:: Run Ubuntu 18.04 on the instace
# website::tag::2:: Run Ubuntu 22.04 on the instance
boot_disk {
initialize_params {
image = "ubuntu-os-cloud/ubuntu-1804-lts"
image = "ubuntu-os-cloud/ubuntu-2204-lts"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/gcp/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

const DEFAULT_MACHINE_TYPE = "f1-micro"
const DEFAULT_IMAGE_FAMILY_PROJECT_NAME = "ubuntu-os-cloud"
const DEFAULT_IMAGE_FAMILY_NAME = "family/ubuntu-1804-lts"
const DEFAULT_IMAGE_FAMILY_NAME = "family/ubuntu-2204-lts"

// Zones that support running f1-micro instances
var ZonesThatSupportF1Micro = []string{"us-central1-a", "us-east1-b", "us-west1-a", "europe-north1-a", "europe-west1-b", "europe-central2-a"}
Expand Down

0 comments on commit d23aae2

Please sign in to comment.