Skip to content

Commit

Permalink
fix: Update image version in documentations (#1242)
Browse files Browse the repository at this point in the history
* update image version

* update ubuntu ids

* use ubuntu22.04

* update examples

* nit
  • Loading branch information
yec-akamai authored Jan 22, 2024
1 parent 764389a commit cab99be
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The following example shows how one might use this data source to access informa

```hcl
data "linode_image" "k8_master" {
id = "linode/debian8"
id = "linode/debian12"
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Get information about all Linode images with a certain label and visibility:
data "linode_images" "specific-images" {
filter {
name = "label"
values = ["Debian 11"]
values = ["Debian 12"]
}
filter {
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/instances.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Each Linode instance will be stored in the `instances` attribute and will export

* `watchdog_enabled` - The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.

* `image` - An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with `private/`. See [images](https://api.linode.com/v4/images) for more information on the Images available for you to use. Examples are `linode/debian9`, `linode/fedora28`, `linode/ubuntu16.04lts`, `linode/arch`, and `private/12345`. See all images [here](https://api.linode.com/v4/linode/images) (Requires a personal access token; docs [here](https://developers.linode.com/api/v4/images)). *This value can not be imported.* *Changing `image` forces the creation of a new Linode Instance.*
* `image` - An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with `private/`. See [images](https://api.linode.com/v4/images) for more information on the Images available for you to use. Examples are `linode/debian12`, `linode/fedora39`, `linode/ubuntu22.04`, `linode/arch`, and `private/12345`. See all images [here](https://api.linode.com/v4/linode/images) (Requires a personal access token; docs [here](https://developers.linode.com/api/v4/images)). *This value can not be imported.* *Changing `image` forces the creation of a new Linode Instance.*

* `swap_size` - When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/vlans.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Provides details about Linode VLANs.
```terraform
resource "linode_instance" "my_instance" {
label = "my_instance"
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
region = "us-southeast"
type = "g6-standard-1"
root_pass = "bogusPassword$"
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/database_access_controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "linode_instance" "my-instance" {
label = "myinstance"
region = "us-southeast"
type = "g6-nanode-1"
image = "linode/alpine3.14"
image = "linode/alpine3.19"
}
resource "linode_database_mysql" "my-db" {
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/firewall.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "linode_firewall" "my_firewall" {
resource "linode_instance" "my_instance" {
label = "my_instance"
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
region = "us-southeast"
type = "g6-standard-1"
root_pass = "bogusPassword$"
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Just as the Linode API provides, these fields are for the most common provisioni

* `root_pass` - (Optional) The initial password for the `root` user account. *This value can not be imported.* *Changing `root_pass` forces the creation of a new Linode Instance.* *If omitted, a random password will be generated but will not be stored in Terraform state.*

* `image` - (Optional) An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with `private/`. See [images](https://api.linode.com/v4/images) for more information on the Images available for you to use. Examples are `linode/debian9`, `linode/fedora28`, `linode/ubuntu16.04lts`, `linode/arch`, and `private/12345`. See all images [here](https://api.linode.com/v4/linode/images) (Requires a personal access token; docs [here](https://developers.linode.com/api/v4/images)). *This value can not be imported.* *Changing `image` forces the creation of a new Linode Instance.*
* `image` - (Optional) An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with `private/`. See [images](https://api.linode.com/v4/images) for more information on the Images available for you to use. Examples are `linode/debian12`, `linode/fedora39`, `linode/ubuntu22.04`, `linode/arch`, and `private/12345`. See all images [here](https://api.linode.com/v4/linode/images) (Requires a personal access token; docs [here](https://developers.linode.com/api/v4/images)). *This value can not be imported.* *Changing `image` forces the creation of a new Linode Instance.*

* `stackscript_id` - (Optional) The StackScript to deploy to the newly created Linode. If provided, 'image' must also be provided, and must be an Image that is compatible with this StackScript. *This value can not be imported.* *Changing `stackscript_id` forces the creation of a new Linode Instance.*

Expand Down Expand Up @@ -214,7 +214,7 @@ By specifying the `disk` and `config` fields for a Linode instance, it is possib

* `read_only` - (Optional) If true, this Disk is read-only.

* `image` - (Optional) An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are `linode/debian9`, `linode/fedora28`, `linode/ubuntu16.04lts`, `linode/arch`, and `private/12345`. See all images [here](https://api.linode.com/v4/images). *Changing `image` forces the creation of a new Linode Instance.*
* `image` - (Optional) An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are `linode/debian12`, `linode/fedora39`, `linode/ubuntu22.04`, `linode/arch`, and `private/12345`. See all images [here](https://api.linode.com/v4/images). *Changing `image` forces the creation of a new Linode Instance.*

* `authorized_keys` - (Optional with `image`) A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if `image` is provided. *This value can not be imported.* *Changing `authorized_keys` forces the creation of a new Linode Instance.*

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/instance_disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "linode_instance_disk" "boot" {
linode_id = linode_instance.my-instance.id
size = linode_instance.my-instance.specs.0.disk
image = "linode/ubuntu20.04"
image = "linode/ubuntu22.04"
root_pass = "myc00lpass!"
authorized_keys = ["ssh-rsa AAAA...Gw== [email protected]"]
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/instance_ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Manages a Linode instance IP.

```terraform
resource "linode_instance" "foo" {
image = "linode/alpine3.16"
image = "linode/alpine3.19"
label = "foobar-test"
type = "g6-nanode-1"
region = "us-east"
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/ipv6_range.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Manages a Linode IPv6 range.
```terraform
resource "linode_instance" "foobar" {
label = "my-linode"
image = "linode/alpine3.14"
image = "linode/alpine3.19"
type = "g6-nanode-1"
region = "us-southeast"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/lke_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Creating a basic LKE cluster:
```terraform
resource "linode_lke_cluster" "my-cluster" {
label = "my-cluster"
k8s_version = "1.21"
k8s_version = "1.28"
region = "us-central"
tags = ["prod"]
Expand All @@ -31,7 +31,7 @@ Creating an LKE cluster with autoscaler:
```terraform
resource "linode_lke_cluster" "my-cluster" {
label = "my-cluster"
k8s_version = "1.21"
k8s_version = "1.28"
region = "us-central"
tags = ["prod"]
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/nodebalancer_node.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The following example shows how one might use this resource to configure NodeBal
resource "linode_instance" "web" {
count = "3"
label = "web-${count.index + 1}"
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
region = "us-east"
type = "g6-standard-1"
authorized_keys = ["ssh-rsa AAAA...Gw== [email protected]"]
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/rdns.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "linode_rdns" "foo" {
}
resource "linode_instance" "foo" {
image = "linode/alpine3.9"
image = "linode/alpine3.19"
region = "ca-east"
type = "g6-dedicated-2"
}
Expand All @@ -36,7 +36,7 @@ resource "linode_instance" "my_instance" {
count = 3
label = "simple_instance-${count.index + 1}"
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
region = "us-central"
type = "g6-standard-1"
root_pass = "terr4form-test"
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/sshkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "linode_sshkey" "foo" {
}
resource "linode_instance" "foo" {
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
label = "foo"
region = "us-east"
type = "g6-nanode-1"
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/stackscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ resource "linode_stackscript" "foo" {
# <UDF name="package" label="System Package to Install" example="nginx" default="">
apt-get -q update && apt-get -q -y install $PACKAGE
EOF
images = ["linode/ubuntu18.04", "linode/ubuntu16.04lts"]
images = ["linode/ubuntu22.04", "linode/ubuntu20.04"]
rev_note = "initial version"
}
resource "linode_instance" "foo" {
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
label = "foo"
region = "us-east"
type = "g6-nanode-1"
Expand Down
2 changes: 1 addition & 1 deletion examples/mysql_adminer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Linode MySQL + Adminer Example

This example launches two Alpine 3.13 instances connected to a VLAN and installs a Docker daemon onto both. One instance runs a publicly accessible Adminer instance, and the other runs a MySQL server only accessible from within the VLAN.
This example launches two Alpine 3.19 instances connected to a VLAN and installs a Docker daemon onto both. One instance runs a publicly accessible Adminer instance, and the other runs a MySQL server only accessible from within the VLAN.

These instances are both placed behind a Firewall, which only allows inbound traffic on port 80 (HTTP).

Expand Down
4 changes: 2 additions & 2 deletions examples/mysql_adminer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "linode_instance" "mysql" {
label = "my-mysql-server"
type = data.linode_instance_type.default.id
region = var.region
image = "linode/alpine3.15"
image = "linode/alpine3.19"
authorized_keys = [
chomp(file(var.public_ssh_key))
]
Expand Down Expand Up @@ -84,7 +84,7 @@ resource "linode_instance" "adminer" {
label = "my-adminer-server"
type = data.linode_instance_type.default.id
region = var.region
image = "linode/alpine3.15"
image = "linode/alpine3.19"
authorized_keys = [
chomp(file(var.public_ssh_key))
]
Expand Down
2 changes: 1 addition & 1 deletion examples/nginx/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Linode Instance, Volume, NodeBalancer, StackScript, and Domain example

This example launches a trio of Ubuntu 18.04 LTS Linode Instances, mounts a volume on each, and serves a webpage from those volume using nginx.
This example launches a trio of Ubuntu 22.04 LTS Linode Instances, mounts a volume on each, and serves a webpage from those volume using nginx.

A NodeBalancer proxies for the Linodes using their private IP address. DNS domain records are mapped to each Linode and the public NodeBalancer addresses.

Expand Down
6 changes: 3 additions & 3 deletions examples/nginx/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data "linode_instance_type" "default" {
}

data "linode_image" "ubuntu" {
id = "linode/ubuntu18.04"
id = "linode/ubuntu22.04"
}

data "linode_domain" "foo-com" {
Expand Down Expand Up @@ -236,7 +236,7 @@ apt-get -q -y install unattended-upgrades $PACKAGE
EOF


images = ["linode/ubuntu18.04", "linode/ubuntu16.04lts"]
images = ["linode/ubuntu22.04", "linode/ubuntu20.04"]
rev_note = "initial script"
}

Expand All @@ -246,7 +246,7 @@ resource "linode_sshkey" "mykey" {
}

resource "linode_instance" "simple" {
image = "linode/ubuntu18.04"
image = "linode/ubuntu22.04"
label = "${random_pet.project.id}-simple"

group = "foo"
Expand Down

0 comments on commit cab99be

Please sign in to comment.