Compare commits

...

2 Commits

8 changed files with 27 additions and 26 deletions

View File

@@ -1,11 +1,12 @@
resource "linode_instance" "this" {
authorized_keys = var.authorized_keys
backups_enabled = true
booted = true
label = "${var.host_name}.${var.domain_name}"
image = var.image
private_ip = true
tags = var.tags
type = var.type
region = var.region
authorized_keys = var.authorized_keys
backups_enabled = var.backups_enabled
booted = var.booted
label = "${var.host_name}.${var.domain_name}"
image = var.image
private_ip = var.private_ip
tags = var.tags
type = var.type
region = var.region
watchdog_enabled = var.watchdog_enabled
}

View File

@@ -1,8 +0,0 @@
resource "linode_rdns" "this_ipv4" {
address = linode_instance.this.ip_address
depends_on = [
linode_domain_record.this_ipv4,
]
rdns = "${var.host_name}.${var.domain_name}"
wait_for_available = false
}

View File

@@ -1,8 +0,0 @@
resource "linode_rdns" "this_ipv6" {
address = element(split("/", linode_instance.this.ipv6), 0)
depends_on = [
linode_domain_record.this_ipv6,
]
rdns = "${var.host_name}.${var.domain_name}"
wait_for_available = false
}

View File

@@ -5,5 +5,5 @@ terraform {
version = ">= 1.27.2"
}
}
required_version = ">= 1.2.1"
required_version = ">= 1.2.2"
}

View File

@@ -0,0 +1,4 @@
variable "backups_enabled" {
default = true
type = bool
}

4
variable.booted.tf Normal file
View File

@@ -0,0 +1,4 @@
variable "booted" {
default = true
type = bool
}

4
variable.private_ip.tf Normal file
View File

@@ -0,0 +1,4 @@
variable "private_ip" {
default = true
type = bool
}

View File

@@ -0,0 +1,4 @@
variable "watchdog_enabled" {
default = true
type = bool
}