Mitchell Hashimoto
9a0f92c5ad
Merge branch 'template-timefmt' of github.com:njones/packer into njones-template-timefmt
...
Conflicts:
packer/config_template.go
website/source/docs/templates/configuration-templates.html.markdown
2014-09-05 16:21:30 -07:00
Mitchell Hashimoto
f03d57f966
Merge pull request #1124 from njones/template-uplow
...
common: Fixes #1114 , Adds upper and lower as filters for the template engine.
2014-09-05 16:16:55 -07:00
Tehmasp Chaudhri
9cf711cfcb
Fixed typo
2014-07-17 16:41:58 -06:00
Mitchell Hashimoto
860542bfee
packer: isotime is launch time [GH-1153]
2014-05-09 20:37:37 -07:00
Nika Jones
cd29c8d586
Fixes #1092 , Adds a format option to the {{isotime}} variable.
...
Now using the golang magic date: Mon Jan 2 15:04:05 -0700 MST 2006
One can format the time like:
{{isotime "2006-01-02"}} == "YYYY-MM-DD"
{{isotime "060102-15"}} == "YYMMDD-HH" (24-hour clock)
{{isotime "060102-3"}} == "YYMMDD-H" (12-hour clock)
Using {{isotime}} as a standalone variable doesn't change. It still returns RFC3339 formatted time.
2014-05-06 06:18:16 -07:00
Nika Jones
13135cbf34
Fixes #1114 , Adds upper and lower as filters for the template engine.
2014-05-06 04:10:44 -07:00
Mitchell Hashimoto
e38c0424b9
packer: allow environmental variables within user vars [GH-633]
2013-12-28 09:34:17 -07:00
Mitchell Hashimoto
4c8b8d4fa7
packer: add `pwd` function with working directory [GH-762]
2013-12-27 20:46:10 -07:00
Mitchell Hashimoto
9239b6a25e
packer: {{timestamp}} is the same for an entire build [GH-744]
2013-12-26 17:29:21 -07:00
Mitchell Hashimoto
8c9d24541b
command/build: remove asserts framewor
2013-10-16 16:27:15 -10:00
Mitchell Hashimoto
79f7936d66
Remove dependency on identifier package, use time ordered UUID [GH-541]
2013-10-16 16:21:14 -10:00
Mark Peek
f941718c3e
builder/amazon: add clean_ami_name template function
...
Add a clean_ami_name template function which will translate illegal
characters in an AMI name to '-'. Example usage would be:
"ami_name": "Ubuntu 12.04 {{isotime | clean_ami_name}}"
2013-09-07 18:42:50 -07:00
Mitchell Hashimoto
4bd3f09099
Merge branch 'master' of https://github.com/armon/packer into armon-master
...
Conflicts:
packer/config_template.go
2013-09-05 17:12:15 -07:00
Mitchell Hashimoto
4642a6aee1
packer: uuid function
2013-09-05 12:19:56 -07:00
Armon Dadgar
fab369bf15
Adding support for isotime template variable
2013-09-05 11:09:37 -07:00
Mitchell Hashimoto
1e520b161b
packer: ConfigTemplate, move from common
2013-08-15 19:11:27 -07:00