fix: remove deployment specific default vars
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
22510d37e3
commit
04cbeb6e87
6
main.tf
6
main.tf
@ -49,9 +49,9 @@ resource "hcloud_server" "server" {
|
|||||||
depends_on = [hcloud_ssh_key.key]
|
depends_on = [hcloud_ssh_key.key]
|
||||||
|
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
server_type = try(each.value.type, var.server_type)
|
server_type = each.value.type
|
||||||
image = try(each.value.image, var.server_image)
|
image = each.value.image
|
||||||
datacenter = try(each.value.datacenter, var.server_datacenter)
|
datacenter = each.value.datacenter
|
||||||
ssh_keys = var.server_keys
|
ssh_keys = var.server_keys
|
||||||
backups = try(each.value.backups, true)
|
backups = try(each.value.backups, true)
|
||||||
keep_disk = try(each.value.keep_disk, false)
|
keep_disk = try(each.value.keep_disk, false)
|
||||||
|
15
variables.tf
15
variables.tf
@ -49,18 +49,3 @@ variable "ssh_keys" {
|
|||||||
variable "server_dns_zone" {
|
variable "server_dns_zone" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "server_type" {
|
|
||||||
type = string
|
|
||||||
default = "cx11"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "server_image" {
|
|
||||||
type = string
|
|
||||||
default = "rocky-9"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "server_datacenter" {
|
|
||||||
type = string
|
|
||||||
default = "fsn1-dc14"
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user