use jsonencode, not template for config.ign

This commit is contained in:
phaer
2022-02-19 15:07:39 +01:00
parent 2a47ad6b89
commit 406ba988bf
5 changed files with 32 additions and 43 deletions

View File

@@ -22,10 +22,7 @@ resource "hcloud_server" "first_control_plane" {
}
provisioner "file" {
content = templatefile("${path.module}/templates/config.ign.tpl", {
name = self.name
ssh_public_key = local.ssh_public_key
})
content = local.ignition_config
destination = "/root/config.ign"
}