From b6a9da11a21c7d9e8077e9cda91dbb667c6fc09b Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 18 May 2021 09:21:26 -0700 Subject: [PATCH] clarify template variable warning --- .../docs/templates/legacy_json_templates/engine.mdx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/website/content/docs/templates/legacy_json_templates/engine.mdx b/website/content/docs/templates/legacy_json_templates/engine.mdx index cec75af01..a54feb2a4 100644 --- a/website/content/docs/templates/legacy_json_templates/engine.mdx +++ b/website/content/docs/templates/legacy_json_templates/engine.mdx @@ -125,14 +125,15 @@ Here is a full list of the available functions for reference. `strftime FORMAT` - UTC time, formated using the ISO C standard format `FORMAT`. See [jehiah/go-strftime](https://github.com/jehiah/go-strftime) for a list - of available format specifier. + of available format specifiers. Please note that if you are using a large number of builders, - provisioners or post-processors, the isotime may be slightly - different for each one because it is from when the plugin is - launched not the initial Packer process. In order to avoid this and make - the timestamp consistent across all plugins, set it as a user variable - and then access the user variable within your plugins. + provisioners or post-processors, using the isotime engine directly in the + plugin configuration may cause the timestamp to be slightly diffferent for + each plugin. This is because the timestamp is generated when each plugin is + launched rather than in the initial Packer process. In order to avoid this + and make sure the timestamp is consistent across all plugins, set it as a user + variable and then access the user variable within your plugins. - `lower` - Lowercases the string. - `packer_version` - Returns Packer version.