Files
opentf/website/source/docs/providers/ignition/r/filesystem.html.md
Máximo Cuadros 85f0fba9f9 Ignition provider (#6189)
* providers: ignition, basic config, version and config

* providers: ignition, user and passwd example, general cache implementation

* vendor: Capture new dependency upstream-pkg

* providers: ignition ignition_user

* providers: ignition ignition_disk, ignition_group and ignition_raid

* providers: ignition_file and ignition_filesystem

* providers: ignition_systemd_unit and ignition_networkd_unit

* providers: ignition_config improvements

* vendor: Capture new dependency upstream-pkg

* providers: ignition main

* documentation: ignition provider

* providers: ignition minor changes

* providers: ignition, fix test

* fixing tests and latest versions
2017-01-03 11:29:14 +00:00

1.7 KiB
Raw Blame History

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
ignition Ignition: ignition_filesystem docs-ignition-resource-filesystem Describes the desired state of a systems filesystem.

ignition_filesystem

Describes the desired state of a the systems filesystems to be configured and/or used with the ignition_file resource.

Example Usage

resource "ignition_filesystem" "foo" {
	name = "root"
	mount {
		device = "/dev/disk/by-label/ROOT"
		format = "xfs"
		force = true
		options = ["-L", "ROOT"]
	}
}

Argument Reference

The following arguments are supported:

  • name - (Optional) The identifier for the filesystem, internal to Ignition. This is only required if the filesystem needs to be referenced in the a ignition_files resource.

  • mount - (Optional) Contains the set of mount and formatting options for the filesystem. A non-null entry indicates that the filesystem should be mounted before it is used by Ignition.

  • path - (Optional) The mount-point of the filesystem. A non-null entry indicates that the filesystem has already been mounted by the system at the specified path. This is really only useful for /sysroot.

The mount block supports:

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

  • format - (Required) The filesystem format (ext4, btrfs, or xfs).

  • force - (Optional) Whether or not the create operation shall overwrite an existing filesystem.

  • options - (Optional) Any additional options to be passed to the format-specific mkfs utility.

Attributes Reference

The following attributes are exported:

  • id - ID used to reference this resource in ignition_config.