* 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
1.8 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| ignition | Ignition: ignition_config | docs-ignition-resource-config | Renders an ignition configuration as JSON |
ignition_config
Renders an ignition configuration as JSON. It contains all the disks, partitions, arrays, filesystems, files, users, groups and units.
Example Usage
resource "ignition_config" "example" {
systemd = [
"${ignition_systemd_unit.example.id}",
]
}
Argument Reference
The following arguments are supported:
-
disks- (Optional) The list of disks to be configured and their options. -
arrays- (Optional) The list of RAID arrays to be configured. -
filesystems- (Optional) The list of filesystems to be configured and/or used in the ignition_file resource. -
files- (Optional) The list of files, rooted in this particular filesystem, to be written. -
systemd- (Optional) The list of systemd units. Describes the desired state of the systemd units. -
networkd- (Optional) The list of networkd units. Describes the desired state of the networkd files. -
users- (Optional) The list of accounts to be added. -
groups- (Optional) The list of groups to be added. -
append- (Optional) A block with config that will replace the current. -
replace- (Optional) Any number of blocks with the configs to be appended to the current config.
The append and replace blocks supports:
-
source- (Required) The URL of the config. Supported schemes are http. Note: When using http, it is advisable to use the verification option to ensure the contents haven’t been modified. -
verification- (Optional) The hash of the config, in the form <type>-<value> where type is sha512.
Attributes Reference
The following attributes are exported:
rendered- The final rendered template.