diff --git a/main.tf b/main.tf index a88de5f..b0e9db2 100644 --- a/main.tf +++ b/main.tf @@ -1,18 +1,9 @@ -locals { - default_remote = "lappy" - instances = { - "tofu-example" = { - - }, - } -} - -resource "incus_instance" "demo" { - name = "demo" - image = "images:fedora/42" - config = { - "boot.autostart" = true - "limits.cpu" = 2 - "limits.memory" = "4GiB" - } -} +# resource "incus_instance" "demo" { +# name = "demo" +# image = "images:fedora/42" +# config = { +# "boot.autostart" = true +# "limits.cpu" = 2 +# "limits.memory" = "4GiB" +# } +# } diff --git a/providers.tf b/providers.tf index 3761dcc..6a62ccd 100644 --- a/providers.tf +++ b/providers.tf @@ -1,4 +1,12 @@ terraform { + cloud { + hostname = "localhost:9000" + organization = "skdevs" + + workspaces { + name = "dev" + } + } required_providers { incus = { source = "lxc/incus" @@ -6,18 +14,19 @@ terraform { } } } - - +variable "token" { + type = string +} provider "incus" { generate_client_certificates = true accept_remote_certificate = true remote { default = true - name = "lappy" + name = "otf" scheme = "https" address = "olympus.tailfc9f5.ts.net" - token = "token" + token = var.token } }