github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/ignition/d/disk.html.md (about)

     1  ---
     2  layout: "ignition"
     3  page_title: "Ignition: ignition_disk"
     4  sidebar_current: "docs-ignition-datasource-disk"
     5  description: |-
     6    Describes the desired state of a system’s disk.
     7  ---
     8  
     9  # ignition\_disk
    10  
    11  Describes the desired state of a system’s disk.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "ignition_disk" "foo" {
    17  	device = "/dev/sda"
    18  	partition {
    19  		start = 2048
    20  		size = 196037632
    21  	}
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `device` - (Required) The absolute path to the device. Devices are typically referenced by the _/dev/disk/by-*_ symlinks.
    30  
    31  * `wipe_table` - (Optional) Whether or not the partition tables shall be wiped. When true, the partition tables are erased before any further manipulation. Otherwise, the existing entries are left intact.
    32  
    33  * `partition` - (Optional) The list of partitions and their configuration for this particular disk..
    34  
    35  
    36  The `partition` block supports:
    37   
    38  * `label` - (Optional) The PARTLABEL for the partition.
    39  
    40  * `number` - (Optional) The partition number, which dictates it’s position in the partition table (one-indexed). If zero, use the next available partition slot.
    41  
    42  * `size` - (Optional) The size of the partition (in sectors). If zero, the partition will fill the remainder of the disk.
    43  
    44  
    45  * `start` - (Optional) The start of the partition (in sectors). If zero, the partition will be positioned at the earliest available part of the disk.
    46  
    47  
    48  * `type_guid` - (Optional) The GPT [partition type GUID](http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs). If omitted, the default will be _0FC63DAF-8483-4772-8E79-3D69D8477DE4_ (Linux filesystem data).
    49  
    50  ## Attributes Reference
    51  
    52  The following attributes are exported:
    53  
    54  * `id` - ID used to reference this resource in _ignition_config_.