commit 0cff8c506d25d76cc410eafb569b1b95c6af6ecd
parent 98d005b149177ea5dd0389b84f25d0d509242873
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Sat, 17 Oct 2020 17:19:32 +0200
Fix interpolation only expressions
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/libvirt/terraform/outputs.tf b/libvirt/terraform/outputs.tf
@@ -1,25 +1,25 @@
output "inventory" {
- value = "${templatefile("${path.module}/templates/inventory.tpl", { hosts = libvirt_domain.host })}"
+ value = templatefile("${path.module}/templates/inventory.tpl", { hosts = libvirt_domain.host })
}
output "qemu_config" {
- value = "${templatefile("${path.module}/templates/qemu-config.yml.tpl", { hosts = libvirt_domain.host })}"
+ value = templatefile("${path.module}/templates/qemu-config.yml.tpl", { hosts = libvirt_domain.host })
}
output "ssh_private_key" {
- value = "${tls_private_key.id_rsa.private_key_pem}"
+ value = tls_private_key.id_rsa.private_key_pem
sensitive = true
}
output "ssh_private_keyfile" {
- value = "${local_file.ssh_private_key.filename}"
+ value = local_file.ssh_private_key.filename
}
output "ssh_public_key" {
- value = "${tls_private_key.id_rsa.public_key_openssh}"
+ value = tls_private_key.id_rsa.public_key_openssh
sensitive = true
}
output "ssh_public_keyfile" {
- value = "${local_file.ssh_public_key.filename}"
+ value = local_file.ssh_public_key.filename
}
diff --git a/libvirt/terraform/vms.tf b/libvirt/terraform/vms.tf
@@ -206,7 +206,7 @@ resource "null_resource" "update_cloudinit" {
resource "null_resource" "update_inventory" {
triggers = {
# when a host id changes
- host_ids = "${join(" ", values(libvirt_domain.host)[*].id)}"
+ host_ids = join(" ", values(libvirt_domain.host)[*].id)
}
provisioner "local-exec" {
# recreate ansible inventory