Megan Marsh
854d6fb141
add tests making sure post-processor has backwards compatability
2018-05-07 15:10:10 -07:00
Megan Marsh
d304234725
fix tests
2018-05-07 15:10:10 -07:00
Megan Marsh
6dc4b1cbdc
move all of the run commands for shell-local provisioner and postprocessor into common library too
2018-05-07 15:10:09 -07:00
Megan Marsh
926327beba
deduplicate all validation and interpolation of the shell-local config, sharing options between shell-local provisioner and post-processor. Maintain backwards compatibility with shell-local provisioner.
2018-05-07 15:10:09 -07:00
Megan Marsh
616b41e58f
deduplicate the nearly identical communicators for the shell-local provisioner and post-processor, moving single communicator into a new common/shell-local module
2018-05-07 15:10:09 -07:00
Matthew Hooker
c6299972b9
s/boot_command/bootcommand/
2018-04-19 14:26:31 -07:00
Megan Marsh
6855216387
force QueryEscape to escape spaces as %20 instead of as + for ovftool.
2018-04-06 15:48:04 -07:00
Matthew Hooker
60986ae682
better comment about why gnu tar
2018-03-29 16:18:55 -07:00
Matthew Hooker
742e366367
conditionally set tar header on go >= 1.10
2018-03-29 14:21:54 -07:00
Stefan Scherer
832f390733
Set tar header format to tar.FormatGNU
2018-03-29 22:46:59 +02:00
Megan Marsh
2cecd73aad
add clarity to error message in vsphere-template postprocessor
2018-03-20 11:32:01 -07:00
Matthew Hooker
3c37aaf4e6
update atlas deprecation language
...
This is a follow-on to #6018
2018-03-19 10:50:29 -07:00
Josh Soref
939e7d5587
spelling: delete
2018-03-13 07:36:38 +00:00
Josh Soref
f6745897c5
spelling: compute
2018-03-13 07:21:31 +00:00
Josh Soref
c312493c38
spelling: available
2018-03-13 07:13:24 +00:00
Josh Soref
5c0191828f
spelling: account
2018-03-13 07:05:56 +00:00
Graham Hayes
91d60d6b81
Add LXC to vagrant post-processor
2018-03-07 15:17:52 +00:00
Matthew Hooker
975b50005b
Merge branch 'master' into local-vsphere-template
2018-02-09 11:18:13 -08:00
Edouard BONLIEU
ae18995ca1
Fix builder id
2018-02-08 12:10:10 -08:00
Edouard BONLIEU
7e36cfcff1
Add Scaleway builder
2018-02-08 12:09:24 -08:00
Matthew Hooker
c03ce222b2
add atlas deprecation warnings.
2018-02-07 15:45:00 -08:00
Matthew Hooker
625201c819
Merge pull request #4148 from minimum2scp/features/googlecompute-export-application-default-credential
...
googlecompute-export: use application default credential
2018-02-05 09:51:21 -08:00
SwampDragons
074ddbea8e
Merge pull request #5732 from KohlsTechnology/vagrant_google
...
Add vagrant post-processor support for Google
2018-01-31 15:49:02 -08:00
Matthew Hooker
48e12b6bee
only set role name if it's set.
2018-01-25 10:39:21 -08:00
Brian Terry
380147200c
Added role in amazon-import
2018-01-25 10:56:30 -05:00
Matthew Hooker
7a189a83a1
fix imports
...
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
...
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.
`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
ebe995c0ff
run goimports
2018-01-22 17:21:10 -08:00
Sean Malloy
e8bac9f4c8
Add unit tests for new vagrant Google post-processor
2017-12-23 23:46:30 -06:00
Sean Malloy
e47bd65986
Add vagrant post-processor support for Google
...
Add the ability to create Google vagrant boxes
using the vagrant post-processor. The Google
plugin for vagrant is linked below.
https://github.com/mitchellh/vagrant-google
2017-12-23 00:13:17 -06:00
Matthew Hooker
f3dea272d9
Set session in state bag
...
We can construct connections to arbitrary regions from it
2017-12-19 11:32:33 -08:00
Matthew Hooker
f6c401a143
don't pass in accessconfig
2017-12-19 11:32:32 -08:00
Rong Chen
3e92b1374e
issue5606: follow the convention to use AccessConfig to create new aws session for step_create_tags etc.
2017-12-19 10:34:12 -08:00
Krzysztof Wilczynski
05327b7524
amazon: Remove Session Token (STS) from being shown in the log.
...
This commit adds a change which ensures that the Session Token
config struct item is removed from log output.
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
2017-12-04 22:14:38 +01:00
Megan Marsh
487ceac784
fix Vet error.
2017-11-13 11:45:31 -08:00
bugbuilder
b754b71519
return vsphere artifact to can build template
2017-11-10 22:57:39 -03:00
bugbuilder
da54bf8e73
using only remoteFolder as parameter
2017-11-10 14:03:15 -03:00
Matthew Hooker
f146e5903f
Merge pull request #5567 from bennu/vm-template-with-export-vm
...
enable vsphere-template post processor to work with export behavior
2017-11-09 15:24:41 -08:00
bugbuilder
23f4d187e2
validating keep_registered and fixing skip_export issues
2017-11-08 15:57:34 -03:00
Matthew Hooker
0172a5c82b
Merge pull request #5511 from hashicorp/fix5507
...
remove login_email from docker
2017-11-06 15:34:04 -08:00
bugbuilder
5ccba2caaa
using virtual disk device to create datastorePath
2017-11-06 02:57:41 -03:00
Matthew Hooker
52558e4f75
check for nil body from upload response
2017-11-02 00:13:31 -07:00
Joe Ferguson
5c2f758053
🎨 Fix typo in "copyed" -> "copied" usages.
2017-10-26 07:42:49 -05:00
Matthew Hooker
1901c0385f
remove login_email from docker
...
adds fixer
removes documentation
removes from docker builder and docker-push pp
2017-10-25 10:53:06 -07:00
Matthew Hooker
abcc02dc64
filter password from logs
2017-10-24 11:39:04 -07:00
Matthew Hooker
0cf0a4336d
relay ovftool output.
2017-10-23 15:38:57 -07:00
Megan Marsh
a7d25cd4c1
remove deprecation warning since we've been talked out of removing shell-local postprocessor
2017-10-12 16:14:15 -07:00
Matthew Hooker
4d3a762e85
Merge pull request #5207 from sandersaares/hyperv-vagrant-hardlink
...
Link VHD instead of copy where allowed by OS
2017-10-09 15:08:16 -07:00
bugbuilder
50904064e1
doesn't keep the original artifact
2017-09-24 21:56:35 -03:00
bugbuilder
75a4ca7351
adding artifact testing and using builder id
2017-09-23 15:43:57 -03:00
bugbuilder
f1773a57f8
using vmx extension as default
2017-09-23 03:01:35 -03:00
bugbuilder
99dd19ccfd
Adding correct reference to VM remote path
2017-09-22 23:37:27 -03:00
bugbuilder
24a8fddf03
showing artifact info in packer UI
2017-09-22 13:54:11 -03:00
bugbuilder
644ac5b367
enable vsphere-template to work with local builders
2017-09-20 22:50:37 -03:00
Megan Marsh
fa177c52c2
put deprecation warning at end so it isnt lost in scrollback
2017-09-11 16:35:05 -07:00
Megan Marsh
4b7fd33f99
add deprecation warning to shell local provisioner
2017-09-11 16:29:45 -07:00
Sander Saares
fb4db02586
Copy/link permissions 0777 -> 0755
...
Previous permission flags were unusually permissive. Almost everything else in Packer uses 0755.
2017-09-02 15:06:04 +03:00
Sander Saares
0ebf1d0da9
Link VHD instead of copy where allowed by OS
...
No need to incur that copy I/O if we don't even change the file!
2017-09-02 14:56:59 +03:00
bugbuilder
6590dfaf82
using runner with pause func
2017-09-01 00:33:40 -03:00
bugbuilder
abc21406cb
Merge branch 'master' of https://github.com/hashicorp/packer into vsphere-tpl
2017-08-31 22:22:51 -03:00
Vijaya Bhaskar Reddy Kondreddi
e45223a867
Fix -on-error issue not working.
...
When we supply -on-error flag for Packer with Hyper-v builder, it does not do anything.
2017-09-01 00:14:28 +05:30
bugbuilder
f09a9c4653
using artifact ID
2017-08-30 18:19:54 -03:00
bugbuilder
138f54d9d3
Merge branch 'master' of https://github.com/hashicorp/packer into vsphere-tpl
2017-08-30 18:13:54 -03:00
bugbuilder
fc4bee4598
VMware typo
2017-08-24 22:46:35 -03:00
bugbuilder
81272d1427
Updated mark as template to be able to use --force
2017-08-14 23:00:19 -03:00
Matthew Hooker
943e8e648a
properly handle decode error
2017-08-07 11:09:40 -07:00
Luke Farnell
d9a5b69403
clean up ineffectual assignments
2017-08-07 13:20:01 -04:00
Justin Campbell
24c4029bb1
Remove date from atlas post-processor warning
2017-08-01 09:08:14 -04:00
bugbuilder
5e1d241db4
Close govmomi session
2017-07-31 10:30:13 -04:00
bugbuilder
786d3c0a9d
updated documentation, vm_name mandatory and cleaning code
2017-07-31 00:26:58 -04:00
bugbuilder
08c6139da4
Create folder using the invotory path
2017-07-27 16:55:47 -04:00
bugbuilder
fb52c42b3d
Only add the folder when the error is NotFoundError
2017-07-25 23:14:59 -04:00
bugbuilder
7274bbb63d
commends, documentation and var names updates
2017-07-19 00:44:18 -04:00
bugbuilder
fa10616f57
Changes requested applied
2017-07-18 23:10:05 -04:00
bugbuilder
3cc9f204ac
Moving vsphere-tpl to vsphere-template, fixed root folder creation and updated docs
2017-07-10 20:52:48 -04:00
bugbuilder
b88fb8bdb2
Improved creation folder step and fixed documentation
2017-07-10 04:13:54 -04:00
bugbuilder
2830b4f3b0
fix test
2017-07-09 22:18:42 -04:00
bugbuilder
35d681444c
format
2017-07-09 22:13:31 -04:00
bugbuilder
fec0b934b5
Adding a simple test
2017-07-09 21:58:29 -04:00
bugbuilder
26dd7ec31b
keep_registered option is not required
2017-07-09 20:33:03 -04:00
bugbuilder
35b29847dc
Cleaning code and adding insecure option to vSphere connection
2017-07-09 15:58:42 -04:00
Rickard von Essen
337e7d88e6
post-processor/checksum: properly interpolate output
...
Fix a bug where "output" of checksum post-processor was not correctly
interpolating {{.BuilderType}}, {{.BuildName}}, and {{.ChecksumType}}.
2017-07-09 21:50:20 +02:00
bugbuilder
c8747f138f
Adding template feature
2017-07-09 14:56:39 -04:00
bugbuilder
dc2124aa2a
Initial vSphere-tpl post-processor
2017-07-09 14:12:37 -04:00
Megan Marsh
b8b34646bd
disallow vagrant.box artifacts in atlas postprocessor
2017-06-29 11:16:42 -07:00
Matthew Hooker
8dae6b60c1
Merge pull request #4996 from hashicorp/mwhooker/4613
...
builder/amazon: Support Assume Role with MFA and ECS Task Roles
2017-06-13 17:40:09 -07:00
Matthew Hooker
4b4c2e4a59
Merge pull request #5008 from hashicorp/pp-vc-u1
...
post-processor/vagrant-cloud: try upload once
2017-06-13 11:36:42 -07:00
Matthew Hooker
94d7a4ce8d
post-processor/vagrant-cloud: try upload once
...
* fixes multiple uploads mentioned in #4973
* removed unused token code
2017-06-12 17:34:32 -07:00
Matthew Hooker
519256feb0
add content-length to file upload
2017-06-12 15:01:19 -07:00
Matthew Hooker
a1747c21f7
vagrant-cloud: use less memory when uploading
2017-06-12 11:07:33 -07:00
Matthew Hooker
56c513088b
I think this was the intention
2017-06-09 10:34:49 -07:00
Matthew Hooker
dde40d54c6
atlas cloud token warn
2017-06-07 17:20:54 -07:00
Matthew Hooker
8933690e90
Merge pull request #4950 from hashicorp/warn_atlas_users
...
add warning about vagrant.box vms being uploaded to atlas
2017-06-07 13:44:41 -07:00
Megan Marsh
dbd7aa6b95
capitalize all the things
2017-06-07 13:30:39 -07:00
Megan Marsh
1c1db91715
add instructions
2017-06-07 13:20:02 -07:00
Andrew Garrett
fbacf883b4
Fix vet issues with alicloud
2017-06-07 19:38:26 +00:00
Matthew Hooker
a52cd65af8
remove license type from general debugging
2017-06-05 15:27:33 -07:00
Matthew Hooker
687f648506
Merge pull request #4634 from dayglojesus/add_amazon_import_license_type
...
amazon-import post-processor: support license_type
2017-06-05 15:23:14 -07:00
Matthew Hooker
b1bcf62ae1
Merge pull request #4619 from zhuzhih2017/master
...
Add packer plugin which support to create alicloud ecs image
2017-06-02 13:33:10 -07:00
Matthew Hooker
88901ffe96
rename alicloud pp
2017-06-01 15:47:47 -07:00
Matthew Hooker
8db397765c
spelling and formatting
2017-06-01 15:47:46 -07:00
Megan Marsh
b31f8bb0f6
clean up formatting and add warning to packer push.
2017-06-01 11:25:53 -07:00
Megan Marsh
690d54aaf9
add warning about vagrant.box vms being uploaded to atlas
2017-06-01 09:39:18 -07:00
zhuzhih2017
b2aa40655b
fix long line format
2017-05-26 10:59:53 +08:00
Brian Warsing
8cc4558df9
fix bad conditional logic and assignment
2017-05-24 13:22:46 -07:00
Brian Warsing
47df47c73f
conform ImportImage LicenseType behaviour
...
- remove the synthetic default; defaults are established internally by the func
- store ImportImageInput in params var
- only pack the LicenseType into struct if a value has been set
2017-05-24 11:33:21 -07:00
Brian Warsing
c5dfe3d503
amazon-import post-processor: support license_type
...
Implements a new config option for the amazon-import post-processor
allowing users to specify a LicenseType during the import process.
Closes : #4631
2017-05-24 11:30:24 -07:00
Matthew Hooker
e8cada8bf7
document and remove artifactID
2017-04-24 10:49:09 -07:00
Matthew Hooker
0b4cd4d394
use the old switch
2017-04-19 21:23:12 -07:00
Matthew Hooker
fbd621d227
fail prepare if hash not found
2017-04-19 21:20:47 -07:00
Matthew Hooker
6722a6ba0c
post-processor/checksum: fix output template
2017-04-19 21:01:54 -07:00
zhuzhih2017
d646e1d035
refactor the code according hashicorp rename the repository
2017-04-18 15:14:45 +08:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
6f27f67346
more fixes from errcheck
2017-03-29 13:38:31 -07:00
Matthew Hooker
bf64d7bdc2
automagic simplification
2017-03-28 20:36:20 -07:00
Matthew Hooker
d1b20b3d9c
remove a bunch of dead code.
...
https://github.com/dominikh/go-tools/tree/master/cmd/unused
2017-03-28 20:36:20 -07:00
Matthew Hooker
230079f73a
spell fixes
2017-03-28 20:36:19 -07:00
zhuzhih2017
0400ebae95
Fix the code according PR review
2017-03-12 10:22:25 +08:00
Matthew Hooker
99091a1713
Merge pull request #4539 from mitchellh/ovftoolhidepassword
...
filter password in ovtool
2017-02-26 18:44:01 -08:00
Matthew Hooker
572493e9b4
Merge pull request #4216 from dave2/gh-3981
...
amazon-import: support AMI attributes on import
2017-02-10 23:36:38 -08:00
Matthew Hooker
192d550cd7
filter password in ovtool
2017-02-10 01:01:03 -08:00
DanHam
e350739ecb
post-processor/shell-local: expand tests to align with shell provisioner
2017-01-23 22:25:39 +00:00
DanHam
9e480eea49
post-processor/shell-local: Align flattened env vars gen with provisioners
...
* Move code to generate quoted flattened env vars to separate function
* Fix: generate flattened env vars once per provisioner not once per script
2017-01-23 22:15:51 +00:00
DanHam
5a350f5699
post-processor/shell-local: Fix output of debug info to stdout
2017-01-23 22:08:23 +00:00
Volodymyr Babchynskyy
d57517d4a4
fix vagrant box structure
2016-12-12 22:44:17 +00:00
Matthew Hooker
b49be38d74
Merge pull request #4210 from yoctocloud/fixes
...
various fixes
2016-12-12 12:33:19 -08:00
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
Vasiliy Tolstov
00ebe9e1d3
various fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-11-29 14:55:44 +03:00
Zanetti, David
c22b97dd43
Support setting AMI attributes when using amazon-import post-processor
...
- ami_user and ami_group for launch permissions
- ami_description to set the description attribute
Closes #3981
2016-11-29 16:54:02 +13: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
5dc6b18365
googlecompute-export: use application default credential as same as googlecompute builder
2016-11-10 18:58:38 +09: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
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
Mitchell Hashimoto
259dba38da
Merge pull request #2269 from mitchellh/b-vagrant-cloud-retry
...
post-processor/vagrant-cloud: retry uploads [GH-2167]
2015-06-19 06:05:53 +02:00
Chris Bednarski
2d92fd8733
Added test case for gzip that expands the data and compares to what we put in
2015-06-18 19:08:13 -07:00
Chris Bednarski
801e5aaa30
Move test configs into the test func
2015-06-18 18:25:46 -07:00
Chris Bednarski
d02f6644d2
Refactored test so it's more DRY and also rearranged things so the test cases and configs are at the top of the file
2015-06-18 18:21:03 -07:00
Chris Bednarski
7497db67b4
Tweaked some of the UI/UX around GOMAXPROCS
2015-06-18 14:22:26 -07:00
Chris Bednarski
0880d448f0
Cleanup some debug code and reorganize config struct
2015-06-18 14:01:00 -07:00
Chris Bednarski
9cd572461d
Updated docs, fix artifact bug
2015-06-18 05:13:48 -07:00
Chris Bednarski
e81378ac39
Fix test case
2015-06-18 04:46:39 -07:00
Chris Bednarski
d8f78d9174
Cleanup
2015-06-18 04:41:05 -07:00
Chris Bednarski
b767aa7f99
Change to compression_level, fix and add tests for format detection
2015-06-18 03:55:51 -07:00
Mitchell Hashimoto
f6660e8a4f
post-processor/vagrant-cloud: retry uploads [GH-2167]
2015-06-18 10:25:47 +02:00
Chris Bednarski
8fdb4f77e0
WIP 2/4 tests passing, still need to re-implement ZIP and bare compression files and do some cleanup
2015-06-18 00:47:33 -07:00
Chris Bednarski
47bb5ae899
Re-added benchmark and license
2015-06-16 20:23:40 -07:00
Chris Bednarski
2d6f8279e6
Restore configuration structure from vtolstov's branch
2015-06-16 19:08:22 -07:00
Chris Bednarski
b2ad92f414
Merged changes from f-file-builder and master
2015-06-16 19:07:29 -07:00
Chris Bednarski
ddbc145d29
Implemented acceptance test for compress
2015-06-16 16:31:09 -07:00
Chris Bednarski
f5067e9736
Merge branch 'f-file-builder' of github.com:mitchellh/packer into f-file-builder
2015-06-16 12:11:33 -07:00
Chris Bednarski
fe105107d2
Removed extra files -- will re-add later
2015-06-16 12:11:11 -07:00
Chris Bednarski
12cf6650a0
Revert compress post-processor to master to get baseline test
2015-06-16 12:10:28 -07:00
Chris Bednarski
fe0c548619
Added acceptance test for file builder
2015-06-16 11:30:49 -07:00
Chris Bednarski
946abd99d8
Merge branch 'master' into f-vtolstov-compress
2015-06-15 10:19:03 -07:00
Chris Bednarski
9c5845e3c7
Merge branch 'master' into f-file-builder
2015-06-15 10:18:42 -07:00
Emil Hessman
1999c83a0c
post-processor/atlas: adjust test for cross-platform filepath separator
...
Make TestLongestCommonPrefix cross-platform friendly by defining
the test cases with filepath.Separator.
Fixes test failure on Windows.
2015-06-13 18:58:19 +02:00
Chris Bednarski
53e4688529
Renamed some things to be more consistent with existing modules
2015-06-12 17:25:09 -07:00
Chris Bednarski
3ac74bbae8
Remove redundant aliases
2015-06-10 14:07:13 -07:00
Chris Bednarski
e294db8ede
Revert to original BuilderId
2015-06-10 14:04:24 -07:00
Chris Bednarski
42d749ab5f
Light style and typo cleanup
2015-06-10 13:46:21 -07:00
Chris Bednarski
c4fc365c65
Updated to reflect changes to template code
2015-06-10 13:33:50 -07:00
Chris Bednarski
52269b66b9
Added new compress post-processor, contributed by Vasiliy Tolstov
2015-06-10 12:30:18 -07:00
Mitchell Hashimoto
23a48d6619
go fmt
2015-06-08 21:34:20 -07:00
Mitchell Hashimoto
10e35a5e8c
Merge pull request #1959 from ryanuber/h-atlas
...
post-processor/atlas: fix index out of range panic
2015-06-08 21:20:31 -07:00
James G. Kim
5bd2d4e6e0
Fix a problem preventing `tag` or `save` from docker-tag artifacts
2015-06-05 22:01:29 +09:00
Mitchell Hashimoto
6109c51115
post-processor/docker-tag: fix failing test
2015-05-29 16:35:41 -07:00
Mitchell Hashimoto
350aa4e522
Merge pull request #2055 from FGtatsuro/docker_tag_force
...
Support force option for docker-tag.
2015-05-29 16:05:00 -07:00
Mitchell Hashimoto
e728c09301
post-processor/vagrant-cloud: in error, don't delete version [GH-2014]
2015-05-29 13:30:52 -07:00
Mitchell Hashimoto
76e9045bc0
post-processor/atlas: find common prefix on Windows [GH-1874]
2015-05-29 11:26:07 -07:00
Mitchell Hashimoto
1a15371c7a
post-processor/docker-tag: remove decodeconfig usage
2015-05-27 14:57:57 -07:00
Mitchell Hashimoto
dc1e67b6d2
post-processor/*: interpolation
2015-05-27 14:56:22 -07:00
Mitchell Hashimoto
5b343ca98c
post-processor/vagrant: interpolation
2015-05-27 14:36:15 -07:00
Mitchell Hashimoto
cbe6e83b60
post-processor/docker-*: fix compilation errors
2015-05-27 14:27:11 -07:00
FGtatsuro
09f379a928
Support force option for docker-tag.
2015-04-18 13:12:28 +09:00
Ryan Uber
f9c14aee90
post-processor/atlas: fix index out of range panic when artifacts are present
2015-03-02 11:59:18 -08:00
Emil Hessman
8144c92dd0
post-processor/vagrant-cloud: fix incorrect printf verb types
...
Fixes the following vet reports:
post-processor/vagrant-cloud/client.go:81: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:99: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:131: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:156: arg resp for printf verb %s of wrong type: *net/http.Response
post-processor/vagrant-cloud/client.go:175: arg resp for printf verb %s of wrong type: *net/http.Response
2015-02-25 05:43:18 +01:00
Emil Hessman
9c31822a2b
post-processor/vagrant: address vet report
...
Fixes the following vet report:
post-processor/vagrant/post-processor_test.go:135: possible formatting directive in Fatal call
2015-02-25 05:43:18 +01:00
Seth Vargo
06e73691d1
Merge pull request #1885 from ceh/fix-win-test
...
post-processor/vagrant: fix test failure on Windows
2015-02-24 20:06:00 -05:00
lalyos
a9648be580
Clarify error message in case of an atlas client connection failure
...
When a packer json contains an atlas postprocessor, and `packer validate` runned locally
in case of the missing ATLAS_TOKEN env var, the following error message is displayed:
* Error initializing client: authentication failed
It wasn't clear which plugin produced this message, so the amazon-ebs builder was the suspect
2015-02-11 11:25:30 +01:00
Seth Vargo
444fe40588
Do not use Unsetenv
2015-02-04 13:30:40 -05:00
Seth Vargo
08ba23f10f
Unset the ATLAS_TOKEN environment variable before that test
2015-02-04 13:30:40 -05:00
Emil Hessman
345d3751b0
post-processor/vagrant: fix test failure on Windows
...
Close temporary file created in test before trying to remove it.
Fixes test failure on Windows, which cannot remove the file unless
it has been closed.
2015-01-30 20:43:19 +01:00
Rickard von Essen
798458481a
Fixes #1881 Don't include Windows Disks when packaging boxes for prl
...
This excludes the directory "Windows Disks" present in the VM data
directory if you hava a Windows VM with Parallels tools installed.
2015-01-30 10:30:42 +01:00
Johannes Graf
277632ad99
Removed version.number / vagrant-cloud post-processor
...
A few weeks ago ... the version.number changed from an integer to a
semver based string.
I guess version.number and version.version are equals now. So
version.version can be used.
This commit should fix #1735
2014-12-27 15:30:34 +01:00
Seth Vargo
ef9cceca06
Merge pull request #1748 from BlackIkeEagle/constant-4294967295-overflows-int
...
atlas post-processor on 32bit uint32 overflows int
2014-12-11 12:02:31 -08:00
BlackEagle
272ef5a6ba
atlas post-processor on 32bit uint32 overflows int
...
post-processor/atlas/util.go:16: constant 4294967295 overflows int
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-12-11 20:14:16 +01:00
BlackEagle
ddb966061f
atlas post-processor unknown atlas.UploadartifactOpts field BuildId
...
in https://github.com/hashicorp/atlas-go/blob/master/v1/artifact.go
we can see it is BuildID and not BuildId
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-12-11 13:51:59 +01:00
Mitchell Hashimoto
0ffd184be6
post-processor/atlas: proper package
2014-12-09 16:14:05 -08:00
Mitchell Hashimoto
f3c1132f23
post-processor/atlas: make it
2014-12-09 16:14:04 -08:00
Seth Vargo
64397f2116
Merge pull request #1730 from ceh/issue-801
...
post-processor/vagrant: check if vagrantfile_template exists
2014-12-08 11:28:18 -08:00
Armon Dadgar
fdeb2bc8a2
Merge pull request #1694 from ceh/issue-1125
...
Test for user variables in vagrantfile_template [GH-1125]
2014-12-08 11:15:12 -08:00
Emil Hessman
53b1db1669
post-processor/vagrant: check if vagrantfile_template exists
...
Fixes #801
2014-11-25 13:02:32 +01:00
Emil Hessman
a65dc929f2
post-processor/vagrant: test if vagrantfile_template exists
...
Test for #801
2014-11-25 12:41:24 +01:00
Emil Hessman
3a8e02110e
post-processor/vagrant: process templates in Configure
2014-11-25 07:04:17 +01:00
Emil Hessman
1de1350ee2
post-processor/vagrant: test for user variables in vagrantfile_template [GH-1125]
...
Previously fixed in a47610879f
Closes #1125
2014-11-24 23:45:49 +01:00
Ryan Breed
514b5f52f1
consistent escaping for ovftool uri creds
...
I got thrown for a loop since the username is uri-escaped but the password was not.
I got thrown for another couple of loops due to the multiple levels of interpretation involved:
1) JSON syntax requires backslashes to be slash-escaped. Some vCenter deployments use windows domain-style usernames DOMAIN\user
2) the OVFTOOL docs specify that "all special characters" be uri-encoded when part of the user name or password
3) different shell interpretations on windows/linux
I'd say escape both or neither.
2014-11-12 23:03:14 -06:00
Mitchell Hashimoto
06144cf287
fmt
2014-10-28 08:43:19 -07:00
Mitchell Hashimoto
98a52c296c
Merge pull request #1597 from petrhosek/enable-custom-vagrant-providers
...
Extract Vagrant provider processing logic to a method
2014-10-28 08:43:12 -07:00
Mitchell Hashimoto
0db6cd3533
Merge pull request #1330 from qur/qemu-vagrant
...
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto
e422a45449
fmt
2014-10-28 08:35:21 -07:00
Mitchell Hashimoto
6a1744a1d2
Merge pull request #1385 from Mayflower/vagrantcloud_selfhosted
...
Vagrantcloud selfhosted
2014-10-27 17:12:21 -07:00
Mitchell Hashimoto
24d641ea32
Merge pull request #1615 from hkhkhk1987/patch-1
...
post-processor/vsphere: fix object address by appending "/"
2014-10-27 16:46:36 -07:00
Jason A. Beranek
a47610879f
Merge pull request #1514 from briandowns/master
...
Added struct to be passed to the Process function to render the vagrant ...
2014-10-27 16:11:58 -05:00
hkhkhk1987
f61cc3f99c
Update post-processor.go
...
the ovftool can't refer to an object vi address without a "/" at the end of the address
2014-10-24 15:21:57 +08:00
Petr Hosek
3992f4472b
Extract Vagrant provider processing logic
...
This change extracts the provider processing logic to a separate method
which can be invoked from a subtype, providing a custom provider.
2014-10-17 11:16:26 +01:00
Mitchell Hashimoto
b6238ec7f0
Update CHANGELOG
2014-10-14 16:04:37 -07:00
Mitchell Hashimoto
333506f54c
Merge pull request #1526 from askholme/fix-docker-push
...
make docker-push work with docker-tag artifacts
2014-10-14 16:03:52 -07:00
Mikhail Zholobov
7b50de33da
post-processor/vagrant/parallels: Removed unnecessary filling the Vagrantfile
2014-10-05 11:30:33 +04:00
Brian Downs
dabf34a458
Replaced struct call with nil per @jsonberanek. Ran go fmt.
2014-10-03 12:34:07 -07:00
Ask Holme
173237ba45
make docker-push work with docker-tag artifacts
2014-09-24 22:22:39 +02:00
Julian Phillips
60e608dfdb
Add support for vagrant with qemu
...
Once we have produced a qemu VM, we now have the option of using
the vagrant post-processor to create a .box file that can be used with
the vagrant-libvirt plugin.
This uses the new State method of the Artifact API to get necessary
information from the builder.
2014-09-22 11:15:47 +01:00
Julian Phillips
90a57c411f
Expand Artifact API to expose build state
...
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
Brian Downs
bf5ec1f985
Ran go fmt
2014-09-19 15:55:05 -07:00
Brian Downs
1303329a91
Added struct to be passed to the Process function to render the vagrant file path. Resolves Issue #1125 .
2014-09-19 15:46:07 -07:00
Mitchell Hashimoto
b2255751a1
post-processor/compress: style
2014-09-08 10:28:16 -07:00
Mitchell Hashimoto
b5f9528738
Merge pull request #1081 from johnbellone/compress-post-processor
...
post-processor/compress Add support for artifact compression.
2014-09-08 10:26:50 -07:00
Mitchell Hashimoto
56d22ac99e
post-processor/docker-push: can login [GH-1243]
2014-09-05 14:43:15 -07:00
Mitchell Hashimoto
cb2c405d88
Merge branch 'feature/docker-image' of github.com:andytson/packer into andytson-feature/docker-image
...
Conflicts:
config.go
2014-09-04 17:56:47 -07:00
Mitchell Hashimoto
7c11d2a313
post-processor/vagrant: style
2014-09-02 09:54:55 -07:00
Mitchell Hashimoto
986394292f
Merge pull request #1371 from alevkin/master
...
post-processor/vagrant: Change creating boxes for customizing metadata.json
2014-09-02 09:53:06 -07:00
Chris Farmiloe
51f55dda48
fix panic when vagrant cloud response fails
2014-08-12 18:11:27 +02:00
Tristan Helmich
7816fc0bf9
vagrantcloud post-processor selfhosted box feature
2014-08-02 15:02:12 +02:00