Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5-bug-fixes/fix-unavailable-server-types
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed: subsequent provisioning retries to change server_type will not automatically tear down already deployed machines
6 changes: 5 additions & 1 deletion terraform/examples/wiab-demo-hetzner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,9 @@ resource "hcloud_server" "host" {
image = "ubuntu-24.04"
ssh_keys = [hcloud_ssh_key.host.name]
server_type = var.server_type

lifecycle {
ignore_changes = [
server_type,
]
}
}
9 changes: 9 additions & 0 deletions terraform/examples/wiab-staging-hetzner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ resource "hcloud_server" "adminhost" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

# The server hosting all the bootstrap assets
Expand All @@ -162,6 +165,9 @@ resource "hcloud_server" "assethost" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

resource "random_pet" "kubenode" {
Expand All @@ -187,6 +193,9 @@ resource "hcloud_server" "kubenode" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

resource "random_pet" "datanode" {
Expand Down
19 changes: 19 additions & 0 deletions terraform/examples/wire-server-deploy-offline-hetzner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ resource "hcloud_server" "adminhost" {
network_id = hcloud_network.main.id
ip = ""
}

lifecycle {
ignore_changes = [server_type]
}
}

# The server hosting all the bootstrap assets
Expand Down Expand Up @@ -216,6 +220,9 @@ resource "hcloud_server" "cassandra" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

resource "random_pet" "elasticsearch" {
Expand All @@ -241,6 +248,9 @@ resource "hcloud_server" "elasticsearch" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

resource "random_pet" "minio" {
Expand All @@ -266,6 +276,9 @@ resource "hcloud_server" "minio" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

resource "random_pet" "postgresql" {
Expand All @@ -291,6 +304,9 @@ resource "hcloud_server" "postgresql" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}

resource "random_pet" "rabbitmq" {
Expand All @@ -316,4 +332,7 @@ resource "hcloud_server" "rabbitmq" {
network_id = hcloud_network.main.id
ip = ""
}
lifecycle {
ignore_changes = [server_type]
}
}
Loading