Skip to content

Commit 77807c6

Browse files
add content types images, rootdir
specify `images` extensions (as per suggestion) Signed-off-by: Kiara Grouwstra <[email protected]>
1 parent 68132bb commit 77807c6

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

docs/guides/setup-proxmox-for-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ Goal is to have a proxmox node in VM using <https://virt-manager.org/> for a job
9292

9393
10. Now you can run `make example`.
9494

95-
11. If you see error with proxmox_virtual_environment_file: the datastore "local" does not support content type "snippets"; supported content types are: `[backup, iso, vztmpl]`, you need to enable them, see <https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_file#snippets>.
95+
11. If you see error with proxmox_virtual_environment_file: the datastore "local" does not support content type "snippets"; supported content types are: `[backup, images, iso, rootdir, vztmpl]`, you need to enable them, see <https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_file#snippets>.

docs/resources/virtual_environment_file.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ resource "proxmox_virtual_environment_file" "ubuntu_container_template" {
124124
- `content_type` - (Optional) The content type. If not specified, the content
125125
type will be inferred from the file extension. Valid values are:
126126
- `backup` (allowed extensions: `.vzdump`, `.tar.gz`, `.tar.xz`, `tar.zst`)
127+
- `images` (allowed extensions: `.qcow2`, `.raw`, `.vmdk`)
127128
- `iso` (allowed extensions: `.iso`, `.img`)
129+
- `rootdir` (allowed extensions: ?)
128130
- `snippets` (allowed extensions: any)
129131
- `vztmpl` (allowed extensions: `.tar.gz`, `.tar.xz`, `tar.zst`)
130132
- `datastore_id` - (Required) The datastore id.

proxmoxtf/resource/validators/file.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ import (
2121
func ContentType() schema.SchemaValidateDiagFunc {
2222
return validation.ToDiagFunc(validation.StringInSlice([]string{
2323
"backup",
24+
"images",
2425
"iso",
26+
"rootdir",
2527
"snippets",
2628
"vztmpl",
2729
}, false))

templates/guides/setup-proxmox-for-tests.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ Goal is to have a proxmox node in VM using <https://virt-manager.org/> for a job
9292

9393
10. Now you can run `make example`.
9494

95-
11. If you see error with proxmox_virtual_environment_file: the datastore "local" does not support content type "snippets"; supported content types are: `[backup, iso, vztmpl]`, you need to enable them, see <https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_file#snippets>.
95+
11. If you see error with proxmox_virtual_environment_file: the datastore "local" does not support content type "snippets"; supported content types are: `[backup, images, iso, rootdir, vztmpl]`, you need to enable them, see <https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_file#snippets>.

0 commit comments

Comments
 (0)