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_storage_volume" "this" {
name = var.name
pool = var.pool
type = var.type
config = var.config
description = var.description
content_type = var.content_type
}
+4
View File
@@ -0,0 +1,4 @@
output "name" {
description = "Name of the storage volume"
value = incus_storage_volume.this.name
}
+33
View File
@@ -0,0 +1,33 @@
variable "name" {
description = "Name of the storage volume."
type = string
}
variable "pool" {
description = "Name of storage pool to host the volume."
type = string
}
variable "description" {
description = "Description of the volume."
type = string
default = null
}
variable "type" {
description = "The 'type' of volume. Default is 'custom'."
type = string
default = "custom"
}
variable "content_type" {
description = "Volume content type. Either 'filesystem' or 'block'."
type = string
default = "filesystem"
}
variable "config" {
description = "Map of key/value pairs of volume config settings. Varies by storage pool."
type = map(string)
default = {}
}
+8
View File
@@ -0,0 +1,8 @@
terraform {
required_providers {
incus = {
source = "lxc/incus"
version = "0.3.1"
}
}
}