feat: initial commit
- have been working on this for some time now
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
output "name" {
|
||||
description = "Name of the storage volume"
|
||||
value = incus_storage_volume.this.name
|
||||
}
|
||||
@@ -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 = {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
incus = {
|
||||
source = "lxc/incus"
|
||||
version = "0.3.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user