Give every cloud machine its own cname
This commit is contained in:
parent
af07840de7
commit
619d5bfa7b
5 changed files with 54 additions and 3 deletions
|
@ -11,10 +11,15 @@ module "casey_firewall" {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "vultr_instance" "casey" {
|
resource "vultr_instance" "casey" {
|
||||||
plan = "" # On a plan unsupported by API
|
plan = "" # On a plan unsupported by API
|
||||||
region = "lhr"
|
region = "lhr"
|
||||||
hostname = "casey"
|
hostname = "casey"
|
||||||
firewall_group_id = module.casey_firewall.firewall_group.id
|
firewall_group_id = module.casey_firewall.firewall_group.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "vultr_reverse_ipv4" "casey_reverse_ipv4" {
|
||||||
|
instance_id = vultr_instance.casey.id
|
||||||
|
ip = vultr_instance.casey.main_ip
|
||||||
|
reverse = "casey.sys.theorangeone.net"
|
||||||
|
}
|
||||||
|
|
|
@ -38,3 +38,8 @@ resource "linode_firewall" "decker" {
|
||||||
ipv6 = ["::/0"]
|
ipv6 = ["::/0"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "linode_rdns" "decker_reverse_ipv4" {
|
||||||
|
address = linode_instance.decker.ip_address
|
||||||
|
rdns = "decker.sys.theorangeone.net"
|
||||||
|
}
|
||||||
|
|
|
@ -8,10 +8,15 @@ module "grimes_firewall" {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "vultr_instance" "grimes" {
|
resource "vultr_instance" "grimes" {
|
||||||
plan = "vhf-1c-1gb"
|
plan = "vhf-1c-1gb"
|
||||||
region = "lhr"
|
region = "lhr"
|
||||||
hostname = "grimes"
|
hostname = "grimes"
|
||||||
firewall_group_id = module.grimes_firewall.firewall_group.id
|
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"
|
||||||
|
}
|
||||||
|
|
31
terraform/sys_domains.tf
Normal file
31
terraform/sys_domains.tf
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
resource "cloudflare_record" "sys_domain_casey" {
|
||||||
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
|
name = "casey.sys"
|
||||||
|
value = vultr_instance.casey.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "sys_domain_walker" {
|
||||||
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
|
name = "walker.sys"
|
||||||
|
value = vultr_instance.walker.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "sys_domain_grimes" {
|
||||||
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
|
name = "grimes.sys"
|
||||||
|
value = vultr_instance.grimes.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "sys_domain_decker" {
|
||||||
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
|
name = "decker.sys"
|
||||||
|
value = linode_instance.decker.ip_address
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
|
@ -8,10 +8,15 @@ module "walker_firewall" {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "vultr_instance" "walker" {
|
resource "vultr_instance" "walker" {
|
||||||
plan = "vhf-1c-1gb"
|
plan = "vhf-1c-1gb"
|
||||||
region = "lhr"
|
region = "lhr"
|
||||||
hostname = "walker"
|
hostname = "walker"
|
||||||
firewall_group_id = module.walker_firewall.firewall_group.id
|
firewall_group_id = module.walker_firewall.firewall_group.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "vultr_reverse_ipv4" "walker_reverse_ipv4" {
|
||||||
|
instance_id = vultr_instance.walker.id
|
||||||
|
ip = vultr_instance.walker.main_ip
|
||||||
|
reverse = "walker.sys.theorangeone.net"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue