mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-05 05:24:01 +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:
parent
0eeb7a7fd9
commit
3280370155
@ -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`)
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user