From 99a7a4b0916f22a7ebe3d6b304b1421f2046c4b1 Mon Sep 17 00:00:00 2001 From: Simao Gomes Viana Date: Tue, 13 Aug 2024 12:49:48 +0200 Subject: [PATCH] Update example --- examples/example.pkr.hcl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/example.pkr.hcl b/examples/example.pkr.hcl index f1b2e0d..9bb6083 100644 --- a/examples/example.pkr.hcl +++ b/examples/example.pkr.hcl @@ -31,6 +31,19 @@ source "file" "example" { target = "/dev/null" } +source "file" "var_test" { + content = jsonencode({ + test_var1 = var.test_var1 + test_var2 = var.test_var2 + test_int = var.test_int + test_float = var.test_float + test_big_float = var.test_big_float + test_bool = var.test_bool + test_list = var.test_list + }) + target = "/tmp/tpp_test_vars.json" +} + build { - sources = ["sources.file.example"] + sources = ["sources.file.example", "sources.file.var_test"] }