Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 883538a97a | |||
| 490b2279b4 | |||
| ed8e4a55c4 |
@@ -0,0 +1,3 @@
|
|||||||
|
data "linode_domain" "this" {
|
||||||
|
domain = var.domain_name
|
||||||
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
output "instance" {
|
output "instance" {
|
||||||
value = linode_instance.this
|
value = linode_instance.this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
resource "linode_domain_record" "this_ipv4" {
|
||||||
|
domain_id = data.linode_domain.this.id
|
||||||
|
name = var.host_name
|
||||||
|
record_type = "A"
|
||||||
|
target = linode_instance.this.ip_address
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
resource "linode_domain_record" "this_ipv6" {
|
||||||
|
domain_id = data.linode_domain.this.id
|
||||||
|
name = var.host_name
|
||||||
|
record_type = "AAAA"
|
||||||
|
target = element(split("/", linode_instance.this.ipv6), 0)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user