Files
terraform-provider-ct/examples/fedora-coreos.tf
Dalton Hubble 9afaead101 Update examples to use Butane Configs everywhere
* Show Butane Config for Fedora CoreOS (`fcos` variant)
* Show Butane Config for Flatcar Linux (`flatcar` variant)
2022-07-31 16:32:35 -07:00

19 lines
470 B
HCL

# Butane Config for Fedora CoreOS
data "ct_config" "fedora-coreos-config" {
content = templatefile("${path.module}/content/fcos.yaml", {
message = "Hello World!"
})
strict = true
pretty_print = true
snippets = [
file("${path.module}/content/fcos-snippet.yaml"),
]
}
# Render as Ignition
resource "local_file" "fedora-coreos" {
content = data.ct_config.fedora-coreos-config.rendered
filename = "${path.module}/output/fedora-coreos.ign"
}