Fix: Add target filename for config file 87/71887/1 v0.88.1
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 30 Jun 2023 04:53:22 +0000 (14:53 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 30 Jun 2023 04:53:22 +0000 (14:53 +1000)
Pass target file where the config file should be created. Newer
version of packer accepts only .json or .hcl extension filenames.

Error:
Could not guess format of
/w/workspace/builder-packer-verify@tmp/config5102323344744095713tmp
A var file must be suffixed with `.hcl` or `.json`.'

Issue: RELENG-4764
Change-Id: Ief8b703246667c38c216ede6ac94e5d549cfe46b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-macros.yaml
releasenotes/notes/update-packer-macros-f19cc00ed8615018.yaml [new file with mode: 0644]

index 667e75b..bf76f3b 100644 (file)
       - config-file-provider:
           files:
             - file-id: "{packer-cloud-settings}"
+              target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl"
               variable: CLOUDENV
       - inject:
           properties-content: |
       - config-file-provider:
           files:
             - file-id: "{packer-cloud-settings}"
+              target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl"
               variable: CLOUDENV
       - inject:
           properties-content: |
diff --git a/releasenotes/notes/update-packer-macros-f19cc00ed8615018.yaml b/releasenotes/notes/update-packer-macros-f19cc00ed8615018.yaml
new file mode 100644 (file)
index 0000000..7caa31c
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Pass target file where the config file should be created.
+    New version of packer accepts only .json or .hcl extension filenames.