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

     1  ---
     2  layout: "ignition"
     3  page_title: "Ignition: ignition_raid"
     4  sidebar_current: "docs-ignition-datasource-raid"
     5  description: |-
     6    Describes the desired state of the system’s RAID.
     7  ---
     8  
     9  # ignition\_raid
    10  
    11  Describes the desired state of the system’s RAID.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "ignition_raid" "md" {
    17  	name = "data"
    18  	level = "stripe"
    19  	devices = [
    20        	"/dev/disk/by-partlabel/raid.1.1",
    21          "/dev/disk/by-partlabel/raid.1.2"
    22  	]
    23  }
    24  
    25  data "ignition_disk" "disk1" {
    26  	device = "/dev/sdb"
    27  	wipe_table = true
    28  	partition {
    29  		label = "raid.1.1"
    30          number = 1
    31          size = 20480
    32          start = 0
    33  	}
    34  }
    35  
    36  data "ignition_disk" "disk2" {
    37  	device = "/dev/sdc"
    38  	wipe_table = true
    39  	partition {
    40  		label = "raid.1.2"
    41          number = 1
    42          size = 20480
    43          start = 0
    44  	}
    45  }
    46  ```
    47  
    48  ## Argument Reference
    49  
    50  The following arguments are supported:
    51  
    52  * `name` - (Required) The name to use for the resulting md device.
    53  
    54  * `level` - (Required) The redundancy level of the array (e.g. linear, raid1, raid5, etc.).
    55  
    56  * `devices` - (Required) The list of devices (referenced by their absolute path) in the array.
    57  
    58  * `spares` - (Optional) The number of spares (if applicable) in the array.
    59  
    60  ## Attributes Reference
    61  
    62  The following attributes are exported:
    63  
    64  * `id` - ID used to reference this resource in _ignition_config_