Skip to content

Commit

Permalink
Use debian-11 image in docs and replace one hard-coded test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
alakae committed May 19, 2023
1 parent a51d6ce commit f270c67
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cloudscale/resource_cloudscale_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ func multipleSubnetConfig(rInt1 int, rInt2 int, networkIndex int, subnetIndex in
resource "cloudscale_server" "web-worker01" {
name = "terraform-%d"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "%s"
volume_size_gb = 50
interfaces {
type = "private"
Expand Down Expand Up @@ -563,5 +563,5 @@ resource "cloudscale_server" "web-worker01" {
}`, subnetIndex, subnetIndex)
}

return subnetConfig_baseline(2, rInt1) + fmt.Sprintf(template, rInt2, networkTemplate, addressTemplate)
return subnetConfig_baseline(2, rInt1) + fmt.Sprintf(template, rInt2, DefaultImageSlug, networkTemplate, addressTemplate)
}
2 changes: 1 addition & 1 deletion docs/data-sources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "cloudscale_server" "gw" {
name = "gateway"
zone_slug = "lpg1"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
volume_size_gb = 20
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
interfaces {
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/server_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "cloudscale_server" "web-worker01" {
count = 3
name = "web-worker${count.index}"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
server_group_ids = [data.cloudscale_server_group.web-worker-group.id]
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/subnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "cloudscale_server" "fixed" {
name = "fix"
zone_slug = "lpg1"
flavor_slug = "flex-4-1"
image_slug = "debian-9"
image_slug = "debian-11"
interfaces {
type = "public"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/floating_ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Provides a cloudscale.ch Floating IP to represent a publicly-accessible static I
resource "cloudscale_server" "web-worker01" {
name = "web-worker01"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "cloudscale_server" "gw" {
name = "gateway"
zone_slug = "lpg1"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
volume_size_gb = 20
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
interfaces {
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Provides a cloudscale.ch server resource. This can be used to create, modify, im
resource "cloudscale_server" "web-worker01" {
name = "web-worker01"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
volume_size_gb = 10
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/server_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "cloudscale_server" "web-worker01" {
count = 3
name = "web-worker${count.index}"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
server_group_ids = [cloudscale_server_group.web-worker-group.id]
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/subnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "cloudscale_server" "fixed" {
name = "fix"
zone_slug = "lpg1"
flavor_slug = "flex-4-1"
image_slug = "debian-9"
image_slug = "debian-11"
interfaces {
type = "public"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Provides a cloudscale.ch volume (block storage) resource. This can be used to cr
resource "cloudscale_server" "web-worker01" {
name = "web-worker01"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ provider "cloudscale" {
resource "cloudscale_server" "web-worker01" {
name = "web-worker01"
flavor_slug = "flex-8-4"
image_slug = "debian-9"
image_slug = "debian-11"
volume_size_gb = 50
ssh_keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL2jzgla23DfRVLQr3KT20QQYovqCCN3clHrjm2ZuQFW [email protected]"]
}
Expand Down

0 comments on commit f270c67

Please sign in to comment.