Add archive
This commit is contained in:
parent
cad329f06a
commit
6dff04b9c1
1 changed files with 19 additions and 0 deletions
19
archive.tf
Normal file
19
archive.tf
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue