layout | page_title | sidebar_current | description |
---|---|---|---|
ignition |
Ignition: ignition_networkd_unit |
docs-ignition-datasource-networkd-unit |
Describes the desired state of the networkd units. |
Describes the desired state of the networkd units.
data "ignition_networkd_unit" "example" {
name = "00-eth0.network"
content = "[Match]\nName=eth0\n\n[Network]\nAddress=10.0.1.7"
}
The following arguments are supported:
-
name
- (Required) The name of the file. This must be suffixed with a valid unit type (e.g. 00-eth0.network). -
content
- (Required) The contents of the networkd file.
The following attributes are exported:
rendered
- The rendered template to reference this resource in ignition_config.