From d64c20623059c81bdef4d5082c209ec0bb388ea0 Mon Sep 17 00:00:00 2001 From: Mohd Umar Date: Thu, 5 Sep 2024 10:23:13 +0400 Subject: [PATCH] Update bootstrap template path in vmseries.tf updated the vmseries.tf file to correct the path for the bootstrap template file used by the template_file data resource. This ensures that the correct relative path is used when referencing the bootstrap.xml.template file, improving the module's portability and preventing potential issues related to incorrect file paths. --- vmseries.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vmseries.tf b/vmseries.tf index f363576..d2156f2 100644 --- a/vmseries.tf +++ b/vmseries.tf @@ -81,7 +81,7 @@ data "template_file" "bootstrap_xml" { resource "local_file" "bootstrap_xml" { for_each = local.vmseries_vms - filename = "tmp/bootstrap-${each.key}" + filename = "${path.module}/tmp/bootstrap-${each.key}" content = data.template_file.bootstrap_xml[each.key].rendered } @@ -102,9 +102,9 @@ module "bootstrap" { service_account = module.iam_service_account.email files = { - "bootstrap_files/init-cfg.txt.sample" = "config/init-cfg.txt" - "tmp/bootstrap-${each.key}" = "config/bootstrap.xml" - "bootstrap_files/authcodes" = "license/authcodes" + "${path.module}/bootstrap_files/init-cfg.txt.sample" = "config/init-cfg.txt" + "${path.module}/tmp/bootstrap-${each.key}" = "config/bootstrap.xml" + "${path.module}/bootstrap_files/authcodes" = "license/authcodes" } depends_on = [