infrastructure/terraform/grimes_vps.tf
Jake Howard 0b65498330
All checks were successful
/ terraform (push) Successful in 1m15s
/ ansible (push) Successful in 3m14s
Add v6 for reverse domains
2023-04-23 13:56:44 +01:00

29 lines
727 B
HCL

module "grimes_firewall" {
source = "./vultr_firewall/"
description = "grimes"
ports = [
"80/tcp",
"443/tcp",
"7743/tcp",
]
}
resource "vultr_instance" "grimes" {
plan = "vhf-1c-1gb"
region = "lhr"
hostname = "grimes"
firewall_group_id = module.grimes_firewall.firewall_group.id
}
resource "vultr_reverse_ipv4" "grimes_reverse_ipv4" {
instance_id = vultr_instance.grimes.id
ip = vultr_instance.grimes.main_ip
reverse = "grimes.sys.theorangeone.net"
}
resource "vultr_reverse_ipv6" "grimes_reverse_ipv6" {
instance_id = vultr_instance.grimes.id
ip = vultr_instance.grimes.v6_main_ip
reverse = "grimes.sys.theorangeone.net"
}