@@ -55,9 +55,62 @@ in Packer templates. These are listed below for reference.
...
@@ -55,9 +55,62 @@ in Packer templates. These are listed below for reference.
*`pwd` - The working directory while executing Packer.
*`pwd` - The working directory while executing Packer.
*`isotime` - UTC time in RFC-3339 format.
*`isotime` - UTC time in RFC-3339 format.
*<code>isotime `<format>`</code> - UTC time in [<format>](http://golang.org/pkg/time/#example_Time_Format) format.
*`timestamp` - The current Unix timestamp in UTC.
*`timestamp` - The current Unix timestamp in UTC.
*`uuid` - Returns a random UUID.
*`uuid` - Returns a random UUID.
### isotime Format
Formatting for the function <code>isotime `<format>`</code> uses the magic reference date **Mon Jan 2 15:04:05 -0700 MST 2006**, which breaks down to the following:
<tableborder="1"cellpadding="5"width="100%">
<trbgcolor="lightgray">
<td></td>
<tdalign="center"><strong>Day of Week</strong></td>
<tdalign="center"><strong>Month</strong></td>
<tdalign="center"><strong>Date</strong></td>
<tdalign="center"><strong>Hour</strong></td>
<tdalign="center"><strong>Minute</strong></td>
<tdalign="center"><strong>Second</strong></td>
<tdalign="center"><strong>Year</strong></td>
<tdalign="center"><strong>Timezone</strong></td>
</tr>
<tr>
<td><strong>Numeric</strong></td>
<tdalign="center">-</td>
<tdalign="center">01</td>
<tdalign="center">02</td>
<tdalign="center">03 (15)</td>
<tdalign="center">04</td>
<tdalign="center">05</td>
<tdalign="center">06</td>
<tdalign="center">-0700</td>
</tr>
<tr>
<td><strong>Textual</strong></td>
<tdalign="center">Monday (Mon)</td>
<tdalign="center">January (Jan)</td>
<tdalign="center">-</td>
<tdalign="center">-</td>
<tdalign="center">-</td>
<tdalign="center">-</td>
<tdalign="center">-</td>
<tdalign="center">MST</td>
</tr>
</table>
_The values in parentheses are the abbreviated, or 24-hour clock values_
Here are some example formated time, using the above format options: