feat: a bunch of things, also hcloud removal

This commit is contained in:
Kat Inskip 2024-10-25 12:55:56 -04:00
parent e59be4137b
commit 899e37094f
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
8 changed files with 40 additions and 32 deletions

View file

@ -0,0 +1,11 @@
/*resource "hcloud_network" "network" {
name = "network-17a07f9"
ip_range = "10.0.0.0/16"
}
resource "hcloud_network_subnet" "subnet" {
network_id = hcloud_network.network.id
type = "cloud"
network_zone = "us-west"
ip_range = "10.0.1.0/24"
}*/

7
tf/old_hcloud/hcloud.tf Normal file
View file

@ -0,0 +1,7 @@
/*variable "hcloud_token" {
sensitive = true
}
provider "hcloud" {
token = var.hcloud_token
}*/

View file

@ -0,0 +1,50 @@
/*resource "hcloud_primary_ip" "ipv4" {
auto_delete = false
name = "yukari-v4-aef50a7"
datacenter = "hil-dc1"
type = "ipv4"
assignee_type = "server"
}
resource "hcloud_primary_ip" "ipv6" {
auto_delete = false
name = "yukari-v6-66a4b55"
datacenter = "hil-dc1"
type = "ipv6"
assignee_type = "server"
}
resource "hcloud_server" "yukari" {
name = "yukari"
server_type = "cpx21"
keep_disk = true
allow_deprecated_images = false
image = "ubuntu-22.04"
datacenter = "hil-dc1"
public_net {
ipv4_enabled = true
ipv4 = hcloud_primary_ip.ipv4.id
ipv6_enabled = true
ipv6 = hcloud_primary_ip.ipv6.id
}
lifecycle {
ignore_changes = [
server_type,
user_data,
public_net
]
}
}
resource "hcloud_rdns" "yukari-v4" {
server_id = hcloud_server.yukari.id
ip_address = hcloud_server.yukari.ipv4_address
dns_ptr = "yukari.gensokyo.zone"
}
resource "hcloud_rdns" "yukari-v6" {
server_id = hcloud_server.yukari.id
ip_address = hcloud_server.yukari.ipv6_address
dns_ptr = "yukari.gensokyo.zone"
}*/