fix: switch hcloud instances to CX22 (CX11 doesn't exist anymore)

This commit is contained in:
Iain Learmonth 2024-11-09 13:07:08 +00:00
parent 0aa41b303d
commit 9caf1deb74

View file

@ -50,13 +50,13 @@ class BridgeHcloudAutomation(BridgeAutomation):
provider = hcloud.account_{{ bridge.id }}
}
data "hcloud_server_type" "cx11_{{ bridge.id }}" {
data "hcloud_server_type" "cx22_{{ bridge.id }}" {
provider = hcloud.account_{{ bridge.id }}
name = "cx11"
name = "cx22"
}
resource "random_shuffle" "datacenter_{{ bridge.id }}" {
input = [for s in data.hcloud_datacenters.ds_{{ bridge.id }}.datacenters : s.name if contains(s.available_server_type_ids, data.hcloud_server_type.cx11_{{ bridge.id }}.id)]
input = [for s in data.hcloud_datacenters.ds_{{ bridge.id }}.datacenters : s.name if contains(s.available_server_type_ids, data.hcloud_server_type.cx22_{{ bridge.id }}.id)]
result_count = 1
lifecycle {