Commit Graph

4105 Commits

Author SHA1 Message Date
lokulin bda4ef7c65 Retry the AWS API when looking for a newly created instance
Sometimes the AWS API responds that it can't find a newly created
instance if you poll it too soon after creation.  Retry a few times
to be sure it really hasn't been created.
2015-05-22 15:08:51 +10:00
Mitchell Hashimoto 28dc1c2aed template: validate post-processor only/except 2015-05-21 15:42:12 -06:00
Mitchell Hashimoto 637fabc1c7 template: validate only/except 2015-05-21 15:39:32 -06:00
Mitchell Hashimoto 2f7e95cc46 template: Validate 2015-05-21 15:29:45 -06:00
Mitchell Hashimoto 2e4dd63912 template: parse push 2015-05-21 14:44:29 -06:00
Mitchell Hashimoto 43fbd26dc9 template: copy some description and min vesrion 2015-05-21 14:41:33 -06:00
Mitchell Hashimoto 839784b044 template: parse post-processors 2015-05-21 14:32:22 -06:00
Mitchell Hashimoto fbda5b119a template: variable parsing 2015-05-21 13:40:33 -06:00
Mitchell Hashimoto 4583ed6108 template: parse provisioners 2015-05-21 13:34:44 -06:00
Mitchell Hashimoto 95890003b7 template: builder parsing 2015-05-19 15:25:56 -06:00
Josh Bleecher Snyder 2fe785ed35 common: remove dead code
The referenced bug was fixed in Go 1.2,
and Packer requires Go 1.2+.
2015-05-18 15:13:36 -07:00
Josh Bleecher Snyder 76c8cfd498 common: don't scrub ""
If the access_key or secret_key were loaded from
somewhere other than the packer file then
ScrubConfig can get called to scrub "" and "".

This results in very long output:

<Filtered><<Filtered>F<Filtered>i...

Don't do that.
2015-05-18 15:13:01 -07:00
Vasiliy Tolstov 3984f5e6f6 add discard option to qemu builder
Enabling discards for disk can greatly minimize disk size then user
inside vm use fstrim command or trim/discard unneded blocks.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-05-17 20:48:58 +03:00
Mitchell Hashimoto 1e745d9508 template/interpolate: user variables 2015-05-15 21:18:27 -07:00
Mitchell Hashimoto a4b5e08fe4 template/interpolate: upper/lower 2015-05-15 21:16:52 -07:00
Mitchell Hashimoto 7659a91445 template/interpolate: timestamp 2015-05-15 21:14:41 -07:00
Mitchell Hashimoto b84ec8da4b template/interpolate: isotime 2015-05-15 21:12:54 -07:00
Mitchell Hashimoto 5d205ec1fc template/interpolate: wd 2015-05-15 21:10:12 -07:00
Mitchell Hashimoto 125369d102 template/interpolate: can specify template data 2015-05-15 21:08:46 -07:00
Mitchell Hashimoto ff6573ce10 template/interpolate: basic + some funcs 2015-05-15 21:05:47 -07:00
Seth Vargo 350a5f8cad Merge pull request #2115 from mitchellh/sethvargo/update_middleman
Update middleman-hashicorp
2015-05-15 16:32:11 -04:00
Seth Vargo 527a9e9bfc Update middleman-hashicorp 2015-05-15 16:19:35 -04:00
Seth Vargo 0652a76af4 Merge pull request #2111 from asagage/fix-typo-getting-started-remote-builds
Fix typo in getting started remote builds example code
2015-05-14 17:31:20 -04:00
Asa Gage c3a6e60e6c removed NL 2015-05-14 17:27:30 -04:00
Asa Gage 849b825d18 Fixed missing comma in remote-builds example code. 2015-05-14 17:22:32 -04:00
Romain Bossart 8944824fa8 doc update: no need for homebrew/binary anymore 2015-05-14 21:11:44 +02:00
Rickard von Essen 835aff4562 Fixes #2079 - Documentation parallel_tools_mode / guest_additions_mode 2015-05-05 09:21:32 +02:00
Ernie Hershey d903b6d56a Remove duplicate "directly" 2015-05-01 14:34:37 -04:00
Seth Vargo c8b3dfff5f Merge pull request #2059 from KFishner/hashicorp-ecosystem
Add how Packer fits into the HashiCorp Ecosystem
2015-04-24 12:11:53 -04:00
Eric Johnson 3bdf80a7e9 Merge pull request #2061 from duftler/google-cleanup-disk-on-sigint
Delete GCE disk on SIGINT.
2015-04-22 11:12:44 -07:00
duftler 6d28ee931c Delete GCE disk on SIGINT. 2015-04-21 18:02:05 +00:00
Kevin Fishner 2c8ddc384b add packer and the hc ecosystem 2015-04-20 15:55:16 -07:00
FGtatsuro 09f379a928 Support force option for docker-tag. 2015-04-18 13:12:28 +09:00
Eric Johnson 419f3271f1 Merge pull request #2052 from sparkprime/useragent
Use new Google API and OAuth libs, add UserAgent string
2015-04-17 12:20:35 -07:00
Dave Cunningham 982934dfb9 Use new Google API and OAuth libs, add UserAgent string 2015-04-17 15:12:39 -04:00
Dan Schaffer 03436a3745 builder/amazon/chroot: fix no attachments on volume error.
This adds retry logic to the amazon/chroot builder.  The builder
intermittently fails when ec2conn shows the volume in the attached
state but calling Volumes[0].Attachments return an empty array. The
fix adds a retry logic for when Volumes[0].Attachments has len 0 sleep
for 2 seconds and retry up to 30 times.

When the Volumes[0].Attachments is empty I find within 5 seconds the
Volumes[0].Attachments contains the correct value.

The issue is reported in:
https://github.com/mitchellh/packer/issues/1854
2015-04-16 13:06:48 -04:00
Jack Pearkes 344c741642 command/push: allow specifying a -name param for push target 2015-04-15 12:54:58 -07:00
James Nugent 6a3bf9d87e Remove Go 1.2 from the Travis build 2015-04-15 12:18:33 -07:00
James Nugent 65a9347b1e Fix potential nil pointer errors in ported code
This commit adds extra nil checks for some pointers which were not
necessary when using goamz
2015-04-15 12:17:44 -07:00
James Nugent 33b4f5cc0a Check for EBS being nil before assigning it 2015-04-15 11:49:29 -07:00
James Nugent e99cd56b6c Migrate from mitchellh/goamz to awslabs/aws-sdk-go
This commit moves the Amazon builders of Packer away from the Hashicorp
fork of the goamz library to the official AWS SDK for Go, in order that
third party plugins may depend on the more complete official library
more easily.
2015-04-12 21:33:09 -04:00
Spencer Owen 59499426b0 Changes date example in isotime
The example of using 1506 doesn't make much sense since 15 is the hour and 06 is the year. 
Using HHMM is a more intuitive example
2015-04-09 14:43:12 -06:00
Emil Hessman bd425db546 packer: skip colored ui test if ui doesn't support colors
Fixes test failure on Windows.
2015-04-07 20:33:58 +02:00
Matt Fellows a973dce7d3 Report error code during Temporary Security Group creation (#2021) 2015-04-07 12:11:34 +10:00
Brian Hourigan a4cfd921f4 Adding missing hyphen to sudo options 2015-04-04 10:52:17 -04:00
Alex Shadrin 43f86180da zsh completion 2015-04-04 13:51:59 +03:00
Nevins Bartolomeo 6686b62347 AWS availability zone could be incorrect when using spot instances with no AZ specified 2015-04-03 20:52:54 -04:00
Georg Großberger 8c0169b1c4 Make the Vmware build extract the host IP properly from ifconfig stdout 2015-03-25 14:45:15 +01:00
Justin Campbell 23ac351c85 Clarify doubly-nested array use in post-processors
Expands on the description of the Vagrant and Vagrant Cloud
post-processors needing to be in a doubly-nested array.

Also, separate the two arrays in the JSON sample so they stick out more
(and reformat the JSON).
2015-03-24 15:41:17 -04:00
Donald Guy a7206aebd7 builder/docker: attempt to satisfy travis for #1993 2015-03-20 12:50:03 -04:00