ip -> ipv4...

...explictly label current ip values as ipv4, in order to more
easily add ipv6 support later on.
This commit is contained in:
phaer
2022-02-26 12:26:14 +01:00
parent 52b3d9b82c
commit 38fc145ad0
10 changed files with 30 additions and 31 deletions

View File

@@ -64,7 +64,7 @@ resource "hcloud_server" "server" {
}
resource "hcloud_server_network" "server" {
ip = var.private_ip
ip = var.private_ipv4
server_id = hcloud_server.server.id
subnet_id = var.subnet_id
subnet_id = var.ipv4_subnet_id
}

View File

@@ -54,12 +54,12 @@ variable "location" {
type = string
}
variable "subnet_id" {
variable "ipv4_subnet_id" {
description = "The subnet id"
type = string
}
variable "private_ip" {
variable "private_ipv4" {
description = "Private IP for the server"
type = string
}