add specific subnet for nodepool
This commit is contained in:
@@ -65,6 +65,7 @@ resource "hcloud_server" "server" {
|
||||
}
|
||||
|
||||
resource "hcloud_server_network" "server" {
|
||||
server_id = hcloud_server.server.id
|
||||
network_id = var.network_id
|
||||
ip = var.private_ip
|
||||
server_id = hcloud_server.server.id
|
||||
subnet_id = var.subnet_id
|
||||
}
|
||||
|
@@ -54,9 +54,14 @@ variable "location" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "network_id" {
|
||||
description = "The network or subnet id"
|
||||
type = number
|
||||
variable "subnet_id" {
|
||||
description = "The subnet id"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "private_ip" {
|
||||
description = "Private IP for the server"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "server_type" {
|
||||
|
Reference in New Issue
Block a user