this config is in prep for otf server
This commit is contained in:
parent
473a24e55d
commit
49016f3456
2 changed files with 22 additions and 22 deletions
27
main.tf
27
main.tf
|
|
@ -1,18 +1,9 @@
|
||||||
locals {
|
# resource "incus_instance" "demo" {
|
||||||
default_remote = "lappy"
|
# name = "demo"
|
||||||
instances = {
|
# image = "images:fedora/42"
|
||||||
"tofu-example" = {
|
# 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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
17
providers.tf
17
providers.tf
|
|
@ -1,4 +1,12 @@
|
||||||
terraform {
|
terraform {
|
||||||
|
cloud {
|
||||||
|
hostname = "localhost:9000"
|
||||||
|
organization = "skdevs"
|
||||||
|
|
||||||
|
workspaces {
|
||||||
|
name = "dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
required_providers {
|
required_providers {
|
||||||
incus = {
|
incus = {
|
||||||
source = "lxc/incus"
|
source = "lxc/incus"
|
||||||
|
|
@ -6,18 +14,19 @@ terraform {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
variable "token" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
provider "incus" {
|
provider "incus" {
|
||||||
generate_client_certificates = true
|
generate_client_certificates = true
|
||||||
accept_remote_certificate = true
|
accept_remote_certificate = true
|
||||||
|
|
||||||
remote {
|
remote {
|
||||||
default = true
|
default = true
|
||||||
name = "lappy"
|
name = "otf"
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
address = "olympus.tailfc9f5.ts.net"
|
address = "olympus.tailfc9f5.ts.net"
|
||||||
token = "token"
|
token = var.token
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue