0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-04 21:14:05 +00:00

feat(file): rename content type backup -> dump for backups (#724)

specify right content type for backups

This now matches with the folder used by proxmox for backups
Also update documentation to reflect the change

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>
This commit is contained in:
DanielHabenicht 2023-11-17 02:54:48 +01:00 committed by GitHub
parent 0eeb7a7fd9
commit 3280370155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -13,13 +13,13 @@ Manages a file.
## Example Usage
### Backups
### Backups (`dump`)
-> **Note:** The resource with this content type uses SSH access to the node. You might need to configure the [`ssh` option in the `provider` section](../index.md#node-ip-address-used-for-ssh-connection).
```terraform
resource "proxmox_virtual_environment_file" "backup" {
content_type = "backup"
content_type = "dump"
datastore_id = "local"
node_name = "pve"
@ -99,7 +99,7 @@ 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`)
- `dump` (allowed extensions: `.vzdump`)
- `iso` (allowed extensions: `.iso`, `.img`)
- `snippets` (allowed extensions: any)
- `vztmpl` (allowed extensions: `.tar.gz`, `.tar.xz`, `tar.zst`)

View File

@ -53,7 +53,7 @@ func BIOS() schema.SchemaValidateDiagFunc {
// ContentType returns a schema validation function for a content type on a storage device.
func ContentType() schema.SchemaValidateDiagFunc {
return validation.ToDiagFunc(validation.StringInSlice([]string{
"backup",
"dump",
"iso",
"snippets",
"vztmpl",