From 549ae38af5314ee2a6204527780e60b11dc4d55f Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 24 Aug 2022 18:27:37 +0200 Subject: [PATCH] add caladan vm --- linode.tf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/linode.tf b/linode.tf index e801354..9ce45cd 100644 --- a/linode.tf +++ b/linode.tf @@ -1,2 +1,33 @@ provider "linode" { } + +# https://www.linode.com/docs/guides/import-existing-infrastructure-to-terraform/ +resource "linode_instance" "caladan-vm" { + label = "caladan" + region = "eu-central" + type = "g6-nanode-1" + + config { + label = "My Alpine 3.13 Disk Profile" + kernel = "linode/grub2" + root_device = "/dev/sda" + + devices { + sda { + disk_label = "Alpine 3.13 Disk" + } + sdb { + disk_label = "512 MB Swap Image" + } + } + } + + disk { + label = "Alpine 3.13 Disk" + size = 25088 + } + disk { + label = "512 MB Swap Image" + size = 512 + } +}