mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Remove floating IP
This commit is contained in:
parent
a4e1399331
commit
832b9cb918
4 changed files with 10 additions and 32 deletions
10
instances.tf
10
instances.tf
|
|
@ -2,10 +2,6 @@ data "hcloud_image" "nixos_stable" {
|
|||
with_selector = "nixos=21.05"
|
||||
}
|
||||
|
||||
data "hcloud_floating_ip" "main_ip" {
|
||||
with_selector = "external=main"
|
||||
}
|
||||
|
||||
resource "hcloud_network" "private_network" {
|
||||
name = "private"
|
||||
ip_range = "10.0.0.0/16"
|
||||
|
|
@ -73,9 +69,3 @@ resource "hcloud_server" "backend1" {
|
|||
hcloud_network_subnet.db_network_subnet
|
||||
]
|
||||
}
|
||||
|
||||
resource "hcloud_floating_ip_assignment" "main" {
|
||||
floating_ip_id = data.hcloud_floating_ip.main_ip.id
|
||||
server_id = hcloud_server.backend1.id
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue