Skip to content

Resource: proxmox_virtual_environment_hardware_mapping_dir

Warning

Deprecated: Use proxmox_hardware_mapping_dir instead. This resource will be removed in v1.0.

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