not hardcode the ip allocation for agents

This commit is contained in:
jodhi
2022-02-24 22:49:36 +07:00
parent 7d301f2c6d
commit 58c630ba78
5 changed files with 10 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ resource "hcloud_server" "server" {
network {
network_id = var.network_id
ip = var.ip
ip = try(var.ip, null)
}
connection {

View File

@@ -60,6 +60,7 @@ variable "network_id" {
}
variable "ip" {
default = null
description = "The IP"
type = string
nullable = true