Browse Source

no default server_type anymore

master
parent
commit
6b0d7fb61f
2 changed files with 1 additions and 6 deletions
  1. +0
    -5
      variables.tf
  2. +1
    -1
      vms.tf

+ 0
- 5
variables.tf View File

@@ -25,11 +25,6 @@ variable "server_image" {
default = "debian-10" default = "debian-10"
} }


variable "default_server_type" {
type = string
default = "cx11"
}

variable "ssh_keys_filenames" { variable "ssh_keys_filenames" {
type = set(string) type = set(string)
default = [ default = [


+ 1
- 1
vms.tf View File

@@ -1,7 +1,7 @@
resource "hcloud_server" "vms" { resource "hcloud_server" "vms" {
name = each.key name = each.key
image = var.server_image image = var.server_image
server_type = var.default_server_type
server_type = each.value.server_type
location = var.default_location location = var.default_location
ssh_keys = [for value in hcloud_ssh_key.ssh_keys: value.id] ssh_keys = [for value in hcloud_ssh_key.ssh_keys: value.id]




Loading…
Cancel
Save