From 49a78a67fc64900404d0f39224375b6d8e48a98b Mon Sep 17 00:00:00 2001 From: Andrew Starr-Bochicchio Date: Mon, 12 Feb 2024 15:56:55 -0500 Subject: [PATCH] Update OS and size in examples. --- .web-docs/components/builder/digitalocean/README.md | 8 ++++---- builder/digitalocean/builder_test.go | 2 +- docs/builders/digitalocean.mdx | 8 ++++---- example/basic_digitalocean.pkr.hcl | 4 ++-- example/build.pkr.hcl | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.web-docs/components/builder/digitalocean/README.md b/.web-docs/components/builder/digitalocean/README.md index 0039c87..35350cf 100644 --- a/.web-docs/components/builder/digitalocean/README.md +++ b/.web-docs/components/builder/digitalocean/README.md @@ -127,9 +127,9 @@ access tokens: ```hcl source "digitalocean" "example" { api_token = "YOUR API KEY" - image = "ubuntu-16-04-x64" + image = "ubuntu-22-04-x64" region = "nyc3" - size = "512mb" + size = "s-1vcpu-1gb" ssh_username = "root" } @@ -144,9 +144,9 @@ build { { "type": "digitalocean", "api_token": "YOUR API KEY", - "image": "ubuntu-16-04-x64", + "image": "ubuntu-22-04-x64", "region": "nyc3", - "size": "512mb", + "size": "s-1vcpu-1gb", "ssh_username": "root" } ``` diff --git a/builder/digitalocean/builder_test.go b/builder/digitalocean/builder_test.go index 89ab00d..33c9ad5 100644 --- a/builder/digitalocean/builder_test.go +++ b/builder/digitalocean/builder_test.go @@ -10,7 +10,7 @@ func testConfig() map[string]interface{} { return map[string]interface{}{ "api_token": "bar", "region": "nyc2", - "size": "512mb", + "size": "s-1vcpu-1gb", "ssh_username": "root", "image": "foo", } diff --git a/docs/builders/digitalocean.mdx b/docs/builders/digitalocean.mdx index 7693f89..ffca4ed 100644 --- a/docs/builders/digitalocean.mdx +++ b/docs/builders/digitalocean.mdx @@ -51,9 +51,9 @@ access tokens: ```hcl source "digitalocean" "example" { api_token = "YOUR API KEY" - image = "ubuntu-16-04-x64" + image = "ubuntu-22-04-x64" region = "nyc3" - size = "512mb" + size = "s-1vcpu-1gb" ssh_username = "root" } @@ -68,9 +68,9 @@ build { { "type": "digitalocean", "api_token": "YOUR API KEY", - "image": "ubuntu-16-04-x64", + "image": "ubuntu-22-04-x64", "region": "nyc3", - "size": "512mb", + "size": "s-1vcpu-1gb", "ssh_username": "root" } ``` diff --git a/example/basic_digitalocean.pkr.hcl b/example/basic_digitalocean.pkr.hcl index e9c46cd..8e63acf 100644 --- a/example/basic_digitalocean.pkr.hcl +++ b/example/basic_digitalocean.pkr.hcl @@ -9,9 +9,9 @@ packer { source "digitalocean" "example" { api_token = "YOUR API KEY" - image = "ubuntu-16-04-x64" + image = "ubuntu-22-04-x64" region = "nyc3" - size = "512mb" + size = "s-1vcpu-1gb" ssh_username = "root" } diff --git a/example/build.pkr.hcl b/example/build.pkr.hcl index e9c46cd..8e63acf 100644 --- a/example/build.pkr.hcl +++ b/example/build.pkr.hcl @@ -9,9 +9,9 @@ packer { source "digitalocean" "example" { api_token = "YOUR API KEY" - image = "ubuntu-16-04-x64" + image = "ubuntu-22-04-x64" region = "nyc3" - size = "512mb" + size = "s-1vcpu-1gb" ssh_username = "root" }