diff --git a/docs/guides/setup-proxmox-for-tests.md b/docs/guides/setup-proxmox-for-tests.md index 2d2f9f722..783e35574 100644 --- a/docs/guides/setup-proxmox-for-tests.md +++ b/docs/guides/setup-proxmox-for-tests.md @@ -92,4 +92,4 @@ Goal is to have a proxmox node in VM using for a job 10. Now you can run `make example`. -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 . +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 . diff --git a/docs/resources/virtual_environment_file.md b/docs/resources/virtual_environment_file.md index 90c362750..814e431b4 100644 --- a/docs/resources/virtual_environment_file.md +++ b/docs/resources/virtual_environment_file.md @@ -124,7 +124,9 @@ resource "proxmox_virtual_environment_file" "ubuntu_container_template" { - `content_type` - (Optional) The content type. If not specified, the content type will be inferred from the file extension. Valid values are: - `backup` (allowed extensions: `.vzdump`, `.tar.gz`, `.tar.xz`, `tar.zst`) + - `images` (allowed extensions: `.qcow2`, `.raw`, `.vmdk`) - `iso` (allowed extensions: `.iso`, `.img`) + - `rootdir` (allowed extensions: ?) - `snippets` (allowed extensions: any) - `vztmpl` (allowed extensions: `.tar.gz`, `.tar.xz`, `tar.zst`) - `datastore_id` - (Required) The datastore id. diff --git a/proxmoxtf/resource/validators/file.go b/proxmoxtf/resource/validators/file.go index 8cd2e57ee..1e20c0aab 100644 --- a/proxmoxtf/resource/validators/file.go +++ b/proxmoxtf/resource/validators/file.go @@ -21,7 +21,9 @@ import ( func ContentType() schema.SchemaValidateDiagFunc { return validation.ToDiagFunc(validation.StringInSlice([]string{ "backup", + "images", "iso", + "rootdir", "snippets", "vztmpl", }, false)) diff --git a/templates/guides/setup-proxmox-for-tests.md.tmpl b/templates/guides/setup-proxmox-for-tests.md.tmpl index 2d2f9f722..783e35574 100644 --- a/templates/guides/setup-proxmox-for-tests.md.tmpl +++ b/templates/guides/setup-proxmox-for-tests.md.tmpl @@ -92,4 +92,4 @@ Goal is to have a proxmox node in VM using for a job 10. Now you can run `make example`. -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 . +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 .