not hardcode the ip allocation for agents
This commit is contained in:
@@ -14,7 +14,7 @@ resource "hcloud_server" "server" {
|
||||
|
||||
network {
|
||||
network_id = var.network_id
|
||||
ip = var.ip
|
||||
ip = try(var.ip, null)
|
||||
}
|
||||
|
||||
connection {
|
||||
|
@@ -60,6 +60,7 @@ variable "network_id" {
|
||||
}
|
||||
|
||||
variable "ip" {
|
||||
default = null
|
||||
description = "The IP"
|
||||
type = string
|
||||
nullable = true
|
||||
|
Reference in New Issue
Block a user