feat: initial commit
- have been working on this for some time now
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
resource "incus_image" "this" {
|
||||
source_image = {
|
||||
remote = var.remote
|
||||
name = var.name
|
||||
architecture = var.architecture
|
||||
aliases = var.aliases
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
output "fingerprint" {
|
||||
description = "The fingerprint of the pulled image."
|
||||
value = incus_image.this.fingerprint
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
incus = {
|
||||
source = "lxc/incus"
|
||||
version = "0.3.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user