Skip to content
This repository was archived by the owner on Dec 5, 2020. It is now read-only.

Files

Latest commit

Aug 28, 2019
d81d44e · Aug 28, 2019

History

History
64 lines (49 loc) · 1.3 KB

raid.html.md

File metadata and controls

64 lines (49 loc) · 1.3 KB
layout page_title sidebar_current description
ignition
Ignition: ignition_raid
docs-ignition-datasource-raid
Describes the desired state of the system’s RAID.

ignition_raid

Describes the desired state of the system’s RAID.

Example Usage

data "ignition_raid" "md" {
	name = "data"
	level = "stripe"
	devices = [
      	"/dev/disk/by-partlabel/raid.1.1",
        "/dev/disk/by-partlabel/raid.1.2"
	]
}

data "ignition_disk" "disk1" {
	device = "/dev/sdb"
	wipe_table = true
	partition {
		label = "raid.1.1"
        number = 1
        size = 20480
        start = 0
	}
}

data "ignition_disk" "disk2" {
	device = "/dev/sdc"
	wipe_table = true
	partition {
		label = "raid.1.2"
        number = 1
        size = 20480
        start = 0
	}
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name to use for the resulting md device.

  • level - (Required) The redundancy level of the array (e.g. linear, raid1, raid5, etc.).

  • devices - (Required) The list of devices (referenced by their absolute path) in the array.

  • spares - (Optional) The number of spares (if applicable) in the array.

Attributes Reference

The following attributes are exported:

  • rendered - The rendered template to reference this resource in ignition_config.