Add archive

This commit is contained in:
Benoit 2024-11-15 18:55:08 +09:00
parent cad329f06a
commit 6dff04b9c1
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA

19
archive.tf Normal file
View file

@ -0,0 +1,19 @@
resource "incus_storage_volume" "archive_var_www" {
name = "archive_var_www"
pool = incus_storage_pool.default.name
}
resource "incus_instance" "archive" {
name = "archive"
image = "images:alpine/3.20"
device {
name = "var_www"
type = "disk"
properties = {
path = "/var/www"
source = incus_storage_volume.archive_var_www.name
pool = incus_storage_pool.default.name
}
}
}