tf-ansible-workflow

Terraform/Ansible Workflow for Libvirt
git clone https://git.in0rdr.ch/tf-ansible-workflow.git
Log | Files | Refs | Pull requests |Archive

commit a845342fda73fe5361659f34e66472931f3f36a6
parent a6edcf15b212c5b91e53e2de980b110a04554a3d
Author: Andreas Gruhler <andreas.gruhler@adfinis-sygroup.ch>
Date:   Fri, 27 Dec 2019 06:48:09 +0100

fix interpolation

Diffstat:
Mterraform/vms.tf | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/terraform/vms.tf b/terraform/vms.tf @@ -2,7 +2,7 @@ resource "proxmox_vm_qemu" "host" { # create each host for_each = toset(var.hosts) - name = "${each.value}" + name = each.value cores = var.cores sockets = var.sockets @@ -34,7 +34,7 @@ resource "proxmox_vm_qemu" "host" { ipconfig0 = "ip=dhcp" ciuser = "root" cipassword = "root" - sshkeys = "${tls_private_key.id_rsa.public_key_openssh}" + sshkeys = tls_private_key.id_rsa.public_key_openssh } resource "null_resource" "update_inventory" { @@ -57,13 +57,13 @@ resource "tls_private_key" "id_rsa" { algorithm = "RSA" } resource "local_file" "ssh_private_key" { - sensitive_content = "${tls_private_key.id_rsa.private_key_pem}" + sensitive_content = tls_private_key.id_rsa.private_key_pem filename = "${path.module}/../ssh/id_rsa" provisioner "local-exec" { command = "chmod 600 ${path.module}/../ssh/id_rsa" } } resource "local_file" "ssh_public_key" { - sensitive_content = "${tls_private_key.id_rsa.public_key_openssh}" + sensitive_content = tls_private_key.id_rsa.public_key_openssh filename = "${path.module}/../ssh/id_rsa.pub" }