infrastructure/tf-stage-0/ignition.tf

10 lines
249 B
Terraform
Raw Permalink Normal View History

2022-07-14 02:56:08 +02:00
resource "local_file" "ignition" {
filename = "${var.files_dir}/ansible.ign"
content = templatefile(
"${path.module}/templates/ansible.ign.tpl",
{
ssh_public_key = chomp(one(tls_private_key.root[*].public_key_openssh))
}
)
}