0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00
terraform-provider-proxmox/docs/resources/virtual_environment_hardware_mapping_dir.md
Fina 6dbff43bd1
feat(hardwaremapping): Introduce support for directory mappings (#1902)
Signed-off-by: Fina Wilke <code@felinira.net>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-04-16 18:54:22 -04:00

1.5 KiB

layout title parent subcategory description
page proxmox_virtual_environment_hardware_mapping_dir Resources Virtual Environment Manages a directory mapping in a Proxmox VE cluster.

Resource: proxmox_virtual_environment_hardware_mapping_dir

Manages a directory mapping in a Proxmox VE cluster.

Example Usage

resource "proxmox_virtual_environment_hardware_mapping_dir" "example" {
  comment = "This is a comment"
  name    = "example"
  # The actual map of devices.
  map = [
    {
      node = "pve"
      path = "/mnt/data"
    },
  ]
}

Schema

Required

  • map (Attributes Set) The actual map of devices for the hardware mapping. (see below for nested schema)
  • name (String) The name of this directory mapping.

Optional

  • comment (String) The comment of this directory mapping.

Read-Only

  • id (String) The unique identifier of this directory mapping resource.

Nested Schema for map

Required:

  • node (String) The node this mapping applies to.
  • path (String) The path of the map. For directory mappings the path is required and refers to the POSIX path of the directory as visible from the node.

Import

Import is supported using the following syntax:

#!/usr/bin/env sh
# A directory mapping can be imported using their name, e.g.:
terraform import proxmox_virtual_environment_hardware_mapping_dir.example example