Vasiliy Tolstov
332a208fee
post-processor/shell-local: run only once for each builder
...
don't run post-processor for each artifact file, but only for
each builder to be consistent with other post-processors
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-12-07 20:54:55 -08:00
Matthew Hooker
a6e6b0dfd7
Merge pull request #4192 from mitchellh/manifestoutput
...
post-processor/manifest: fixes interpolation of output
2016-11-22 12:51:27 -08:00
Matthew Hooker
622813053e
Merge pull request #4144 from mitchellh/filenamespaces
...
quote file names so account for spaces
2016-11-21 16:45:52 -08:00
Matthew Hooker
a05817ee26
fix docs, remove escaping
2016-11-21 16:36:10 -08:00
Vasiliy Tolstov
b29d0b4378
post-processor/manifest: fixes interpolation of output
...
* rename `filename` to `output` for consistent with other post-processors
* interpolate output with variables
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-11-21 11:04:16 +03:00
YAMADA Tsuyoshi
61e2ea308e
googlecompute-export: Fixed scopes to run gcloud, gsutil in startup script
2016-11-10 17:54:28 +09:00
Matthew Hooker
a253cda0aa
should fix #3571
2016-11-09 17:24:48 -08:00
lxb
12ef9bf8af
Fixed inconsistency between vagrant-libvirt driver and packer QEMU accelerator
2016-11-03 22:55:55 +11:00
Scott Crunkleton
85210afe92
googlecompute: conditionally omit the wait for startup script step if no startup script is provided.
2016-11-02 15:20:21 -07:00
Matthew Hooker
48bdae93d1
aws-sdk: use session.NewSession
2016-11-01 15:53:04 -07:00
Rickard von Essen
3c8dabba9e
Fixed formatting
2016-10-11 23:43:50 +02:00
Michael Travis
2f1783dda2
Added vsphere-esx hosts to supported machine types in vagrant post processor
2016-10-06 15:09:01 +01:00
Rickard von Essen
7fec12a183
Merge pull request #3941 from imduffy15/master
...
Allow naming of vm imported AMIs
2016-10-01 07:28:28 +02:00
Matthew Hooker
a8e57d83d2
gofmt project.
...
noticed many unrelated changes being added to patches because of gofmt.
ran `find . -not -path "./vendor/*" -name "*.go" -exec gofmt -w {} \;`
2016-09-29 14:13:06 -07:00
Ian Duffy
641ae2d837
Allow naming of vm imported AMIs
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-09-29 16:12:57 +01:00
Rickard von Essen
c5e9944969
Merge pull request #3790 from yoctocloud/manifest
...
post-processor/manifest: add artifact file size to manifest
2016-09-14 21:20:29 +02:00
Vasiliy Tolstov
fe76081e0a
post-processor/manifest: allow to strip path components from artifact path
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-09-14 11:32:25 +03:00
Rickard von Essen
b2d9782a9e
Improved support for Amazon EC2 Container Registry - ECR
...
This adds support for authenticating towards ECR in the docker builder
and docker-push post-processor using them same mechanisms as in the
amazon builders. I.g. access key/secret key, credentials on file,
environment variables, sts tokens or IAM instance roles.
2016-09-04 14:33:47 +02:00
Scott Crunkleton
1b9b37bdc1
Added some error handling and logs for the GCE export startup script.
2016-08-15 16:25:57 -07:00
crunk1
55b5a45ae4
Created googlecompute-export post-processor. Modified the googlecompute builder to pass a few configuration values to its resulting artifact. These values can then be used in googlecompute-export post-processor.
...
Added documentation and changed authentication stuff on temporary VM.
2016-08-15 14:36:26 -07:00
Vasiliy Tolstov
4868f5872e
post-processor/manifest: add artifact file size to manifest
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-08-09 16:46:15 +03:00
Chris Bednarski
644b11805d
Fix go vet casing issue
2016-07-30 17:10:16 -07:00
Chris Bednarski
f9cea9edd1
Merge pull request #3651 from mitchellh/f-manifest-post-processor
...
Manifest post processor
2016-07-21 15:55:47 -07:00
Abhijeet Kasurde
ba0f202258
Removed redundant print message from post-processor/vsphere
...
Fixes: https://github.com/mitchellh/packer/issues/3387
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2016-07-18 22:53:05 +05:30
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
Chris Bednarski
19057028cf
Fix build failure when there is no packer-manifest.json file
2016-06-27 19:19:29 -07:00
Chris Bednarski
9aab66b971
Change sleep so it doesn't wait after the final attempt
2016-06-24 12:46:35 -07:00
T. Tran
4f1d821c35
Make docker-push only pushes the specified tag but not all
2016-06-16 17:00:33 +07:00
Chris Bednarski
7a9c3bc2a0
Added -force truncation behavior for manifest, and added docs
2016-06-10 15:57:01 -07:00
Chris Bednarski
78070f8ca9
Removed input_type and description since these are not particularly useful
2016-06-10 15:57:01 -07:00
Chris Bednarski
3c6ca7cbde
Added builder_type and build_name, renamed some other fields
2016-06-10 15:57:01 -07:00
Chris Bednarski
8c875ebda4
Changed overloaded artifact variable name to source
2016-06-10 15:57:01 -07:00
Chris Bednarski
db593a517d
Added manifest post-processor, which creates a manifest of build artifacts
2016-06-10 15:57:01 -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