feat: initial commit

- have been working on this for some time now
This commit is contained in:
2025-05-30 22:36:55 +10:00
commit cb67816eee
188 changed files with 6145 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
resource "incus_image" "this" {
source_image = {
remote = var.remote
name = var.name
architecture = var.architecture
aliases = var.aliases
}
}
+4
View File
@@ -0,0 +1,4 @@
output "fingerprint" {
description = "The fingerprint of the pulled image."
value = incus_image.this.fingerprint
}
+22
View File
@@ -0,0 +1,22 @@
variable "remote" {
description = "The remote source of the image."
type = string
}
variable "name" {
description = "The name of the image to use."
type = string
}
variable "architecture" {
description = "The image architecture (e.g. x86_64, aarch64)."
type = string
default = "x86_64"
}
variable "aliases" {
description = "A list of aliases to assign to the image after pulling"
type = list(string)
default = null
}
+8
View File
@@ -0,0 +1,8 @@
terraform {
required_providers {
incus = {
source = "lxc/incus"
version = "0.3.1"
}
}
}