Commit Graph

267 Commits

Author SHA1 Message Date
Vasiliy Tolstov 520fac2eba post-processor/checksum: create dir for output file
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-07-03 11:46:36 +03:00
T. Tran 4f1d821c35 Make docker-push only pushes the specified tag but not all 2016-06-16 17:00:33 +07:00
Robert Deusser 9219ffa982 Resolves vsphere post-processor problems (#3321)
* Fixed vsphere post-processor and added logic for optional arguments

* Refactored arg building, and added test for vsphere post-processor
2016-05-18 18:26:46 -07:00
Vasiliy Tolstov d64603e137 initial import of checksum post-processor (#3492)
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-18 17:31:16 -07:00
Vasiliy Tolstov b67ee530c8 post-processor/shell-local: don't set executable bit for artifact files (#3505)
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-18 16:15:26 -07:00
Vasiliy Tolstov 6a5f6938ef post-processor/compress: add bgzf format support
* add bgzf compressor (it allows seek inside compressed file)
* add optional format config variable to specify archive format
* Update pgzip to get sse4 and avx optimizations.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-13 11:51:00 +02:00
Jake Champlin 2bcd276528 Fix spelling error in atlas post processor (#3499) 2016-05-04 23:53:08 -07:00
Chris Bednarski 0f319fde08 Add debug logging for the credentials used for S3 in amazon-import 2016-03-10 16:52:16 -08:00
Vasiliy Tolstov feee19e4ed file provisioner improvements
* allow specify source/destination as dir
* allow specify many files as source

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-12 11:48:28 -08:00
Chris Bednarski 4458de4ea0 Reformat 2016-02-11 23:53:40 -08:00
Chris Bednarski 765ec5cf39 Merge pull request #2962 from dave2/postprocess_amazon_ova
New post-processor: amazon-import
2016-02-11 23:38:15 -08:00
Chris Bednarski 2d749d8c55 Merge pull request #3139 from vtolstov/shell_local
shell-local port processor
2016-02-04 18:58:38 -08:00
Chris Bednarski dab36cbdee Merge pull request #2304 from eloycoto/master
Post-Processor/Vsphere: Added overwrite option
2016-02-02 14:14:54 -08:00
Ian Duffy 5b4e0fe25b Loop through all files in the given artifact and return the given artifact on finish
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-02-01 14:11:25 +00:00
Ian Duffy 34b59bc051 Create a shell-local post processor
The following commits build on work from @vtolstov to create a
post processor shell-local plugin. Please see his original work
over at https://github.com/vtolstov/packer-post-processor-shell

I have modified it slightly to output information onto the packer
ui as shown in the below screenshot which executes a script that
runs env.

This plugin enables users to submit environmental variables to
external external shell script(s) to do some post processing
e.g. (Upload to somewhere, convert to different format, and so
on)

Most of the work is a merge from the provisioner shell and
shell-local scripts.

![Example run of post processor shell-local](http://i.imgur.com/kJv6j9l.png)

Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-02-01 14:11:25 +00:00
Jose Cardoso 096b42abce Added support for spaces in vSphere resource pools 2016-01-26 09:41:30 +00:00
Chris S 195405ca5b Update post-processor.go
Added support for spaces for vm folders, datastore names etc. in the ovftool command line arguments.
2016-01-25 17:00:30 +00:00
David Zanetti a3911ad47c Use interpolation on default s3_key_name. Report import errors from AWS.
- Import errors were not very useful messages, obtain the import status
  from the import task as AWS reports it
- Interpolate s3_key_name as per PR comments (rather than hard-code the
  generated parts of the default value)
- Remove descriptions on AWS import job, they are optional anyway.
2015-11-26 14:02:15 +13:00
David Zanetti 873dc89478 Accept any OVA. Fix names for tasks/import/copy. Update docs.
- s3_key_name is now optional, default is equivilent to
  "packer-import-{{timestamp}}"
- Remove restriction on builder used, anything producing an OVA is okay
- Fix task and ova description passed to import API call, correctly
  adds timestamp to both
- Documentation updated
  - Remove VMware-specific text
  - Mark s3_key_name as optional
  - Remove s3_key_name from example now it's optional
  - Explain the import process more clearly in example
2015-11-25 10:06:35 +13:00
David Zanetti 274630bd9c Support adding tags to AMI and snapshots created by amazon-import
- Tags follows the same approach as the amazon-ebs builder
- Clean up some debug messages
- Improve readability by pulling out AMI id into seperate variable

Note: this duplicates the tag creation code in
builder/amazon/common/step_create_tags.go. Maybe this should be a multistep
post-processor instead, and we re-use steps from the builder.
2015-11-24 14:23:19 +13:00
David Zanetti 95b3ea50ae Add more useful messages and clean up after ourselves
- S3 object uploaded removed after import (with disable option)
- Indicate to user when import is complete
- Close the source file uploaded after upload is done
- Each step of import process logs a debug message
2015-11-24 12:08:31 +13:00
David Zanetti 418da16991 Track the import task and report AMIs created from it 2015-11-23 15:55:09 +13:00
David Zanetti 439d1b1788 First cut at amazon ova importer 2015-11-23 12:32:03 +13:00
Vasiliy Tolstov 82893590db docker-import: allow artifice artifacts
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-11-02 11:21:15 +00:00
Eloy Coto 63d21ec9f3 Vsphere post-processor: Fix merge problems 2015-10-29 10:21:30 +00:00
Eloy Coto 0bc042a15c Post-Processor/Vsphere: Added custom options 2015-10-29 09:35:03 +00:00
Eloy Coto 34f163ce87 Post-Processor/Vsphere: Added overwrite option 2015-10-29 09:35:03 +00:00
Chris Bednarski 803cbde17e Change output format to bytes 2015-10-27 11:57:54 -07:00
Chris Bednarski 8d19ac2dd3 Merge pull request #2863 from grubernaut/issue_1059
Print slug size before upload in packer's atlas post-processor
2015-10-27 11:55:53 -07:00
Jake Champlin 1c1ccc1191 Use Units of measure in file size
Use units of measure, and convert file size to MB with atlas post processor
2015-10-27 10:12:41 -04:00
Mark Peek 5bfa6ce2b8 post-processor/vagrant: add artifact id tests for AWS and DO 2015-10-23 18:38:47 -07:00
Jake Champlin 0b6d303e65 Fixes Issue #1059
Adds size output to `ui.Message` as well as if the artifact failed to
upload to atlas.
2015-10-23 17:39:48 -07:00
Yuya Kusakabe 699c673536 builder/vmware-esxi: Add step_export
If `format` option is configured, packer exports the VM with ovftool.

website: Document about OVF Tool and `format` option.

post-processor/vsphere: Enable to use `mitchellh.vmware-esx` artifact type and OVF and OVA formats, fixes #1457.
2015-10-23 09:00:53 +09:00
Mark Peek c48548b3bb go fmt 2015-10-18 11:13:09 -07:00
Jack Pearkes 6bf790a975 post-processor/atlas: support sending compile ids
Requires https://github.com/hashicorp/atlas-go/pull/44
2015-09-25 11:52:38 -07:00
Vasiliy Tolstov 97f3f31d3d Merge branch 'master' into artifice 2015-08-18 11:57:06 +00:00
Vasiliy Tolstov f0fdf865a1 allow wildcards in artifice files
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-08-18 10:53:33 +00:00
Chris Bednarski 9ee07f1e8d Add parallel gzip compression to the vagrant post-processor 2015-08-12 12:34:52 -07:00
Chris Bednarski 6dd0a21c89 Added an artifice post-processor which allows you to override artifacts in a post-processor chain 2015-08-07 18:21:23 -07:00
Chris Bednarski fbb24d4acf Changed interpolation logic so .BuildName can be used in the output config option 2015-08-04 19:49:41 -07:00
Chris Bednarski 4ef3baa3ee Update test to include some interpolation configs 2015-08-04 19:30:57 -07:00
Chris Bednarski 8d6719e71f Add failing test for compress interpolation 2015-08-03 16:34:24 -07:00
Sam Dunne ee1b6a72ea Fixes #2478 2015-07-21 15:54:48 +01:00
Chris Bednarski eba28519db Move vars to the top and cleanup extra whitespace 2015-06-24 18:29:32 -07:00
Chris Bednarski 1831a09055 Fix compress crash
- Changed config from pointer to value to fix crash
- Removed acceptance flag from compress tests since they would have
caught this
2015-06-24 17:47:00 -07:00
Mitchell Hashimoto d429b75fcc post-processor/vagrant: fix interpolation 2015-06-23 08:39:57 -07:00
Vasiliy Tolstov 2b36bcc502 allow import qemu builded artifacts
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-06-23 14:28:03 +03:00
Mitchell Hashimoto 5db4d7c01f fmt 2015-06-22 12:37:52 -07:00
Mitchell Hashimoto 5241d8c6d6 post-processor/*: fix interpolation context 2015-06-22 12:24:55 -07:00
Salvador Girones 6cb51f21de Make ResourcePool optional 2015-06-22 10:13:49 -07:00