From e98c866057912395151ade153984b9c59adaa804 Mon Sep 17 00:00:00 2001 From: hybris Date: Fri, 25 Jan 2019 18:55:29 +0100 Subject: [PATCH] Convert libvirt_provider.tf to a template --- roles/terraform/files/libvirt_provider.tf | 3 --- roles/terraform/files/libvirt_provider.tf.j2 | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 roles/terraform/files/libvirt_provider.tf create mode 100644 roles/terraform/files/libvirt_provider.tf.j2 diff --git a/roles/terraform/files/libvirt_provider.tf b/roles/terraform/files/libvirt_provider.tf deleted file mode 100644 index 19e88d8..0000000 --- a/roles/terraform/files/libvirt_provider.tf +++ /dev/null @@ -1,3 +0,0 @@ -provider "libvirt" { - uri = "qemu+ssh://{{ libvirt_host }}/system?socket=/var/run/libvirt/libvirt-sock" -} \ No newline at end of file diff --git a/roles/terraform/files/libvirt_provider.tf.j2 b/roles/terraform/files/libvirt_provider.tf.j2 new file mode 100644 index 0000000..1209f1d --- /dev/null +++ b/roles/terraform/files/libvirt_provider.tf.j2 @@ -0,0 +1,3 @@ +provider "libvirt" { + uri = "qemu+ssh://[{{ libvirt_host }}]/system?socket=/var/run/libvirt/libvirt-sock" +}