瀏覽代碼

no default server_type anymore

master
父節點
當前提交
6b0d7fb61f
共有 2 個檔案被更改,包括 1 行新增6 行删除
  1. +0
    -5
      variables.tf
  2. +1
    -1
      vms.tf

+ 0
- 5
variables.tf 查看文件

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

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

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


+ 1
- 1
vms.tf 查看文件

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



Loading…
取消
儲存