modified: .gitignore

Added tofu state and metadata files
new file:   tofu/main.tf
	Barebones tofu linode provider and resource definitions
This commit is contained in:
Mike Holloway 2024-08-22 12:18:29 -04:00
parent f3927c1b10
commit fb6940a0c7
2 changed files with 24 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
.env .env
tofu/.terraform*
tofu/terraform.tfstate*

22
tofu/main.tf Normal file
View File

@ -0,0 +1,22 @@
terraform {
required_providers {
linode = {
source = "linode/linode"
version = "2.26.0"
}
}
}
provider linode {
# Configuration options
token = "b31ef21bb1649e7f580918305192733e84ba14aa5c4936723c89b26f5aae6012"
}
resource linode_instance "ci-cd" {
label = "ci-cd"
image = "linode/almalinux9"
region = "ca-central"
type = "g6-standard-2"
authorized_keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeRI1w3uNny7KjK2UdlAnyoGdGgtOx4isSD52u5dr4QkkdLRMj42dLjgT0MK+QehlgaH2XzFPMDz+hZQ+66YeBSm+F4km/8F9XVyUzGl0scUA1p0pqeL3FiyM3Art4Bo71zuE3PvMjyI3pGMKQ3VDWVA0XdAjjSw4G+czJTxZLLBPGvzDT07WuWM4Evl6H21Gn7PB6CKNV0vuUZwGiCsjRbghml1L2kDtTXV1B6wQsniuhQigIVo6YXhMgge/2UCcmiyeEizdfaSstrQHEyxFMvlPUJyw4a3plAuPORDyZdAFF6OA7/wP5fVWoCu/CkbMIDjPifXGQOuhQU1qUVy7r m00t@miserver.lan"]
root_pass = "Entomb-Unce>tain-Garnish"
}