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

Files

Latest commit

d81d44e · Aug 28, 2019

History

History
54 lines (33 loc) · 1.75 KB

disk.html.md

File metadata and controls

54 lines (33 loc) · 1.75 KB
layout page_title sidebar_current description
ignition
Ignition: ignition_disk
docs-ignition-datasource-disk
Describes the desired state of a system’s disk.

ignition_disk

Describes the desired state of a system’s disk.

Example Usage

data "ignition_disk" "foo" {
	device = "/dev/sda"
	partition {
		start = 2048
		size = 196037632
	}
}

Argument Reference

The following arguments are supported:

  • device - (Required) The absolute path to the device. Devices are typically referenced by the /dev/disk/by-* symlinks.

  • 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.

  • partition - (Optional) The list of partitions and their configuration for this particular disk..

The partition block supports:

  • label - (Optional) The PARTLABEL for the partition.

  • number - (Optional) The partition number, which dictates it’s position in the partition table (one-indexed). If zero, use the next available partition slot.

  • size - (Optional) The size of the partition (in sectors). If zero, the partition will fill the remainder of the disk.

  • start - (Optional) The start of the partition (in sectors). If zero, the partition will be positioned at the earliest available part of the disk.

  • type_guid - (Optional) The GPT partition type GUID. If omitted, the default will be 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem data).

Attributes Reference

The following attributes are exported:

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