Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 34s
29 lines
1000 B
Terraform
29 lines
1000 B
Terraform
terraform {
|
|
required_providers {
|
|
linode = {
|
|
source = "linode/linode"
|
|
# version = "..."
|
|
}
|
|
}
|
|
}
|
|
|
|
# Configure the Linode Provider
|
|
provider "linode" {
|
|
token = var.token
|
|
}
|
|
|
|
resource "linode_instance" "eqit_test_instance" {
|
|
image = "linode/almalinux9"
|
|
label = "act_worker"
|
|
region = "us-ord"
|
|
type = "g6-nanode-1"
|
|
authorized_keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeRI1w3uNny7KjK2UdlAnyoGdGgtOx4isSD52u5dr4QkkdLRMj42dLjgT0MK+QehlgaH2XzFPMDz+hZQ+66YeBSm+F4km/8F9XVyUzGl0scUA1p0pqeL3FiyM3Art4Bo71zuE3PvMjyI3pGMKQ3VDWVA0XdAjjSw4G+czJTxZLLBPGvzDT07WuWM4Evl6H21Gn7PB6CKNV0vuUZwGiCsjRbghml1L2kDtTXV1B6wQsniuhQigIVo6YXhMgge/2UCcmiyeEizdfaSstrQHEyxFMvlPUJyw4a3plAuPORDyZdAFF6OA7/wP5fVWoCu/CkbMIDjPifXGQOuhQU1qUVy7r","ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKvAESrM24zRUUenL1sGmtd5s+e7qhkUF+5ylPWTcG/y"]
|
|
root_pass = "supersecrettestpassword"
|
|
}
|
|
|
|
variable "token" {}
|
|
|
|
output "act_worker_ip_address" {
|
|
value = linode_instance.eqit_test_instance.ip_address
|
|
}
|