Compare commits

..

No commits in common. "master" and "2022-06-01.02" have entirely different histories.

8 changed files with 16 additions and 33 deletions

View File

@ -3,19 +3,19 @@ all: init fmt validate
.PHONY: init
init:
tofu init -upgrade=false
terraform init -upgrade=false
.PHONY: initupgrade
initupgrade:
tofu init -upgrade=true
terraform init -upgrade=true
.PHONY: fmt
fmt: init
tofu fmt
terraform fmt
.PHONY: validate
validate: init fmt
tofu validate
terraform validate
.PHONY: clean
clean:

View File

@ -1,12 +1,11 @@
resource "linode_instance" "this" {
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
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
}

View File

@ -2,8 +2,8 @@ terraform {
required_providers {
linode = {
source = "linode/linode"
version = ">= 3.0.0"
version = ">= 1.27.2"
}
}
required_version = ">= 1.9.1"
required_version = ">= 1.2.1"
}

View File

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

View File

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

View File

@ -1,4 +1,4 @@
variable "image" {
default = "linode/fedora38"
default = "linode/fedora36"
type = string
}

View File

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

View File

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