Commit Graph

800 Commits (dev_version_changes)

Author SHA1 Message Date
Gennady Lipenkov d5a6781fb7 Add new 'yandex-export' post-processor
6 years ago
Adrien Delorme 73242e8de4 make sure keyvalue and namevalue filters are using the same naming as the service being used
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Adrien Delorme 2af40c762b
HCL2: pass on builder type and name (#8956)
6 years ago
Megan Marsh 0f9415297f
Merge pull request #8679 from kwibus/gcp-fallback-image
6 years ago
Adrien Delorme a9255c6ebe Update post-processor.go
6 years ago
Adrien Delorme 88297c796d Merge branch 'master' into hcl2_singular_blocks
6 years ago
Adrien Delorme b5e8750f5f Change key/value to name/value to remain consistent with Terraform
6 years ago
Adrien Delorme 87d6b2433f make generate
6 years ago
r_takaishi f50ff1d270 make generate
6 years ago
Wilken Rivera e1a46ec293
Fix gosimple S1025 linting errors (#8838)
6 years ago
Lars Lehtonen db7a40d6ea
post-processor/digitalocean-import/post-processor.go: replace deprecated session.New() with session.NewSession()
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Adrien Delorme 7d5f0c11af add max_retries option to aws builders
6 years ago
Rens Sikma c8062cc8b3 fix #8679 with source_image_project_id as list
6 years ago
Megan Marsh c6dddb75cf
clarify artifice postprocessor wording to make it clear that it will not clean up old artifacts (#8676)
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
Sylvia Moss 0677b02e18
Share SourceImageName with provisioners and manifest post-processor (#8603)
6 years ago
Sylvia Moss 06a26e74b4
Override post-processor config when processing (#8592)
6 years ago
nywilken 5a54c99e98 post-processor/vagrant-cloud: Update error handling for VagrantCloud API responses
6 years ago
Pit d7d00d8069 Fix regression in docker-tag post-processor (#8593)
6 years ago
Hanjie Wang d9a128a375 In Vagrant post-processor, check whether the host system is able to create a dummy Vagrant box before processing (#8431)
6 years ago
Megan Marsh 49a33c04cd
Merge pull request #8511 from TJM/vsphere_template_markas
6 years ago
Tommy McNeely e469140678 workaround for mapstructure-to-hcl2 and booleans
6 years ago
Megan Marsh 21edd085c7
Merge pull request #8560 from alexyueer/feature/support_aliyun_profile_20200103
6 years ago
Tommy McNeely 7f7b54ea31 Use vm.MarkAsTemplate, optionally reregister
6 years ago
Rui Lopes ec17b3d8fa correctly handle the diskSize property as a qemu size string
6 years ago
alexyueer ec4a7b6af0 support aliyun profile
6 years ago
zhuzhih2017 66445ecd2d
Merge pull request #8425 from haoshuwei/master
6 years ago
haoshuwei 37dc411f30 add skip_image_validation arg to use an expired image as the soure image
6 years ago
Megan Marsh b23425f637 use pointer to config rather than config
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables.
6 years ago
Megan Marsh 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Lars Lehtonen 20d375f705
post-processor/digitalocean-import: drop unused test functions
6 years ago
Lars Lehtonen d7eee558a6 post-processor/docker-import: drop unused test functions (#8465)
6 years ago
Lars Lehtonen 4fe34a5dc3 post-processor/docker-push: drop unused test helper functions (#8456)
6 years ago
Lars Lehtonen 8146b39986 post-processor/docker-save: remove unused test functions (#8447)
6 years ago
Adrien Delorme b4200c3590 go generate for the google compute export post processor after #8388
6 years ago
Taneli Leppä e1cb0c5f7e Added support for specifying Service Account in Google Compute exporter post-processor. (#8388)
6 years ago
henry-aj-jones d317d7f3d1 post-processor/docker-tag: Allow to tag an artifact with multiple tags (#8392)
6 years ago
Lars Lehtonen 2e7ba19d8c post-processor/vagrant-cloud: fix dropped test errors
6 years ago
Megan Marsh fcb65ee422
Merge pull request #8307 from hashicorp/fix_8116
6 years ago
Megan Marsh e9e4c102e5 delete amazon import post-processor intermediary snapshots
6 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
6 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
6 years ago
mingsheng.su 4f140d0071 fix docs of ucloud-uhost
6 years ago
mingsheng.su 545575b879 optimize code about ufile config
6 years ago
mingsheng.su 37e898e115 optimize code style
6 years ago
mingsheng.su 1099777978 update bucket about no create
6 years ago
mingsheng.su 083d7896f4 update message of ucloud import
6 years ago
mingsheng.su 2c513fce64 update ucloud packer
6 years ago
mingsheng.su 61f9d3a9fe add ucloud import
6 years ago
Lars Lehtonen 5edabfc849 post-processor/compress: fix dropped errors
6 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
6 years ago
Adrien Delorme 771a6e55ef pp.google.[import|export]: unexport Account field
6 years ago
Adrien Delorme af08e2a410 pp.alicloud-import: remove duplicate AlicloudImageName field
6 years ago
Andrew Starr-Bochicchio ae1bb856a3 digitalocean-import: Fix panic when 'image_regions' not set (Fixes: #7843).
7 years ago
Lars Lehtonen 21f2e67462
post-processor/vagrant-cloud: fix dropped errors
7 years ago
Megan Marsh 3c14c50aba Allow user to real oauth token from properly configured Vault instance
7 years ago
Megan Marsh 61b237b6f7
Merge pull request #8097 from onematchfox/vagrant-cloud
7 years ago
Megan Marsh 9e28b2f5cf fix post-processor
7 years ago
Brian Fox 331babc2ce allow blank access_token (no auth) for private vagrant box hosting
7 years ago
Robbert Müller 9f972375ed
Removed whitelist check for builders
7 years ago
DanHam ca9b500e76
Fix test output: Correct copy/paste errors and make message clearer
7 years ago
DanHam 7770ade74c
Clearer error message for artifice users. OCD nits and logging
7 years ago
DanHam e9ab2203ba
Should return provider correctly with artifacts from other builders or pp's
7 years ago
DanHam e8336039d9
Should return provider correctly with good box and artifice pp
7 years ago
DanHam aee400836f
Should return an error if the provider kv pair is not in the metadata file
7 years ago
DanHam a7603f63c7
Should return an error if the metadata file has badly formatted JSON
7 years ago
DanHam 57137c6e33
Should return an error if the value of the provider key is empty
7 years ago
DanHam d1327fe422
Should return an error if the metadata file is empty
7 years ago
DanHam a9e22a6bb2
Should return the provider by parsing the json in the box metadata file
7 years ago
DanHam 0bf0e7c078
Should return an error when the metadata file is not in the box tar archive
7 years ago
DanHam 063e4bd3e5
Should return an error if the box tar archive is empty
7 years ago
DanHam 9c6b355088
Should return an error if the box is a plain gzip file
7 years ago
DanHam 35d326de39
Add basic workings to function. Return an error if box file is empty
7 years ago
DanHam 6b5cf6dcb2
Should return an error when the box file is missing
7 years ago
DanHam e8c586175e
Intention: Allow use of artifice pp with vagrant-cloud pp
7 years ago
DanHam 3f4f429c3d
Should return an error when artifact file does not have .box extension
7 years ago
DanHam 57308b0126
Should return an error with an invalid BuilderId
7 years ago
DanHam 1bffdd9bff
Add option to allow box Vagrantfile to be dynamically generated during build
7 years ago
DanHam 19f3a63ee1
Tests: Should not error when template is to be created during build
7 years ago
DanHam 4b042ac402
Tests: Should not error when `vagrantfile_template` exists
7 years ago
DanHam 8ddbb791a1
Fix typo
7 years ago
Megan Marsh a87ce366b3
Merge pull request #7835 from hashicorp/google_oauth
7 years ago
Megan Marsh 0dfb3cc56f replace some bespoke google auth code with code from golang's oauth2 library
7 years ago
Marc Falzon d82c4f0057 fixup! fixup! fixup! fixup! Add Exoscale Import post-processor
7 years ago
Marc Falzon 9ce5f5dcee fixup! fixup! fixup! Add Exoscale Import post-processor
7 years ago
Marc Falzon 00c2df24df Add Exoscale Import post-processor
7 years ago
chhaj5236 6b081cc41c
update alicloud builder to use official SDK (#7477)
7 years ago
Adrien Delorme aee73d745d update code after go mod update
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Megan Marsh 9dafa310f3 remove redundant keep_input_artifact code from googlecompute-export and googlecompute-import pps. The behavior coded here was already enforced by the core postprocessor code in packer/build.go
7 years ago
Megan Marsh 1b77b05ce2 remove redundant keep_input_artifact from compress pp and clarify keep behavior in shell-local pp
7 years ago
Megan Marsh 056fcb7cea fix tests and add a few new ones
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme e65115a7a0 contextualize post-processor
7 years ago
Megan Marsh 12fc1fa751 default_keep_input_artifact
7 years ago
Megan Marsh 2c67cd966b
Merge pull request #7396 from c0sco/amazon-import-encryption
7 years ago
Megan Marsh 24c42e4a1f
Merge pull request #7397 from vhaidamaka/fix-7321
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Vadym Haidamaka 4855bc79c9 Add vagrant-cloud post-processor support for the vagrant builder
7 years ago
Matt Stofko ab4382360d Support S3 and AMI encryption
7 years ago
Megan Marsh 67fe820465
Merge pull request #7361 from hashicorp/fix_insecure_skip_tls_verify
7 years ago
Davi Vidal b0e3128125 Improves test message
7 years ago
Davi Vidal 1a94ad14bd Adds test for insecure_skip_tls_verify
7 years ago
Davi Vidal a2fd287e56 Ignores SSL verification when on premise vagrant cloud
7 years ago
Megan Marsh 3ed9fe6dee remove unused imports
7 years ago
Arnaud Dezandee f9ae926d8f
googlecompute-export: set network project id to builder
7 years ago
Megan Marsh be21850e32
Merge pull request #7060 from andrewsomething/do-post-processor
7 years ago
Andrew Starr-Bochicchio 37b3305301 Better varibable naming.
7 years ago
Andrew Starr-Bochicchio ee430d9a40 Only filter on suffix if more than one file.
7 years ago
Andrew Starr-Bochicchio 203b6ca8b4 Prefix env vars w/ 'DIGITALOCEAN_'
7 years ago
Megan Marsh 6cac03044f
Merge pull request #7248 from oceyral/oceyral/feat/add_user_data
7 years ago
Olivier Ceyral 4d10d668ee Add "custom_data" key to packer manifest
7 years ago
Megan Marsh eef4fc7a01
Merge pull request #7222 from Adezandee/gce-post-processors
7 years ago
Megan Marsh 035c3506ba manually set proxyfromenvironment in default http client for ec2 sessions
7 years ago
Megan Marsh c63b54a1e7 move http with proxy call into a helper function
7 years ago
Arnaud Dezandee 8975f67901
googlecompute-export: add exporter instance configs
7 years ago
Arnaud Dezandee 91d2cb8c83
googlecompute-import: add service accounts
7 years ago
Arnaud Dezandee 3d41cdfacb
googlecompute-import: add guest os features
7 years ago
Rickard von Essen a02bd23f56
When import task fails show the StatusMessage
7 years ago
Adrien Delorme 9f7b4ffc17
Merge branch 'master' into pr/6950
7 years ago
Ladar Levison 3cc83167c8 Added map structure type to config changes.
7 years ago
Ladar Levison 6ac5971288 Fixed cmd order for docker driver. Added config to post proc.
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Megan Marsh 042e9ad14b Move logging about aws waiters to the access config prepare() so that it's only spit out once per builder.
7 years ago
Andrew Starr-Bochicchio c0c5c6afac Add DigitalOcean post-processor.
7 years ago
Julio Tain Sueiras 51053efad2 Docs changes & Removed memory and quiesce options from vsphere-template
7 years ago
Julio Tain Sueiras 7f7fee3e2b Added Creation of Snapshot to vSphere Template
7 years ago
Megan Marsh 8567be43d9
Merge pull request #6927 from hashicorp/rebased_4591
7 years ago
Henk e4c2216642 qemu: Add "hvf" as a libvirt driver
7 years ago
Adrien Delorme b113518815
Use switch for readability
7 years ago
Matt Stofko 029819b5d5 Support formats other than OVA.
7 years ago
Megan Marsh 290f4a7c4c cleanup to make it actually build after that monstrous rebase
7 years ago
Adrien Delorme 7b10079507 fail if the request could not be created
7 years ago
Adrien Delorme aa2ebec8fd remove duplicate error message from
7 years ago
Adrien Delorme ff4b6d4442 pass vagrant cloud auth token as http header
7 years ago
Adrien Delorme 415b886f5b post-processor/vagrant-cloud: validate vagrant cloud auth token doing an auth request
7 years ago
dpolitis d1f5312253 fix recurring bug #3878, make destination ESXi host selectable in config, more informative error output
8 years ago
Megan Marsh f4a360bea9 remove unused argument
8 years ago
Megan Marsh 10c4aca521
Merge pull request #6534 from ChrisLundquist/clundquist/xz
8 years ago
Megan Marsh d883dfe67a
Merge pull request #6566 from hashicorp/atlas-deprecation
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Patrick Double d796edc783 Add to vagrant post-processor support for Azure
8 years ago
Matthew Hooker ddf23a2c46
Complete Atlas deprecation.
8 years ago
Chris Lundquist ce1a5b7d7a Print why we are only using one core
8 years ago
Chris Lundquist 999a53ca76 add support for xz compression #6523
8 years ago
Megan Marsh 8f1eb5a61b fix crash caused by invalid datacenter url
8 years ago
Megan Marsh 66c45273fb
Merge pull request #6494 from double16/vagrant-docker
8 years ago
Patrick Double 4f9a91012f Change docker-push to return docker-import artifact
8 years ago
Patrick Double 066b364873 Remove packer.docker from vagrant post processor builtins
8 years ago
Patrick Double a301145ae1 Allow docker build as input to vagrant, docs
8 years ago
Patrick Double 1781d352a5 Add Vagrantfile fragment with docker tag specified
8 years ago
Megan Marsh f657ca39c9 refactored env var code and tests so that I don't have to set env vars during tests to check logic
8 years ago
Megan Marsh bfbe318727 fix the homegrown waiters
8 years ago
Megan Marsh f49a2d8aed move UI call to before the wait; add context to these steps
8 years ago
Megan Marsh cf63dd10bf replace AMIStateRefreshFunc, InstanceStateRefreshFunc, our spot instance waiter, our chroot volume waiter, and our snapshot waiters with waiters form AWS's SDK.
8 years ago
Patrick Double e7fc651f60 First cut at vagrant post-processor for docker
8 years ago
Sean Malloy d8b229b59a Add feature to googlecompute-import post-processor to delete GCS files
8 years ago
Adam Robinson 8715bfbf70 set all tar timestamp fields to the zero date
8 years ago
Sean Malloy 3622a669dc Add new post processor googlecompute-import
8 years ago
Matthew Hooker 788418cff2
Add unit test to show that we handle tars safely
8 years ago
Megan Marsh 7e9a653da7 use testify instead of homegrown string compare
8 years ago
Megan Marsh 58acb7f436 fix windows test
8 years ago
Megan Marsh fabd1a6517 windows cmd env vars
8 years ago
Megan Marsh e983a94a88 fix default windows bash call for shell-local provisioner and move chmod command from the execute_command array into the portion of code where we actually generate inline scripts, sparing users the need to think about this modification which Packer should really handle on its own
8 years ago
Megan Marsh 5da4377f21 first pass at docs update
8 years ago
Megan Marsh 854d6fb141 add tests making sure post-processor has backwards compatability
8 years ago
Megan Marsh d304234725 fix tests
8 years ago
Megan Marsh 6dc4b1cbdc move all of the run commands for shell-local provisioner and postprocessor into common library too
8 years ago
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.
8 years ago
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
8 years ago
Matthew Hooker c6299972b9
s/boot_command/bootcommand/
8 years ago
Megan Marsh 6855216387 force QueryEscape to escape spaces as %20 instead of as + for ovftool.
8 years ago
Matthew Hooker 60986ae682
better comment about why gnu tar
8 years ago
Matthew Hooker 742e366367
conditionally set tar header on go >= 1.10
8 years ago
Stefan Scherer 832f390733
Set tar header format to tar.FormatGNU
8 years ago
Megan Marsh 2cecd73aad add clarity to error message in vsphere-template postprocessor
8 years ago
Matthew Hooker 3c37aaf4e6
update atlas deprecation language
8 years ago
Josh Soref 939e7d5587 spelling: delete
8 years ago
Josh Soref f6745897c5 spelling: compute
8 years ago
Josh Soref c312493c38 spelling: available
8 years ago
Josh Soref 5c0191828f spelling: account
8 years ago
Graham Hayes 91d60d6b81
Add LXC to vagrant post-processor
8 years ago
Matthew Hooker 975b50005b
Merge branch 'master' into local-vsphere-template
8 years ago
Edouard BONLIEU ae18995ca1
Fix builder id
8 years ago
Edouard BONLIEU 7e36cfcff1
Add Scaleway builder
8 years ago
Matthew Hooker c03ce222b2
add atlas deprecation warnings.
8 years ago
Matthew Hooker 625201c819
Merge pull request #4148 from minimum2scp/features/googlecompute-export-application-default-credential
8 years ago
SwampDragons 074ddbea8e
Merge pull request #5732 from KohlsTechnology/vagrant_google
8 years ago
Matthew Hooker 48e12b6bee
only set role name if it's set.
8 years ago
Brian Terry 380147200c Added role in amazon-import
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker ebe995c0ff
run goimports
8 years ago
Sean Malloy e8bac9f4c8 Add unit tests for new vagrant Google post-processor
8 years ago
Sean Malloy e47bd65986 Add vagrant post-processor support for Google
8 years ago
Matthew Hooker f3dea272d9
Set session in state bag
8 years ago
Matthew Hooker f6c401a143
don't pass in accessconfig
8 years ago
Rong Chen 3e92b1374e issue5606: follow the convention to use AccessConfig to create new aws session for step_create_tags etc.
8 years ago
Krzysztof Wilczynski 05327b7524
amazon: Remove Session Token (STS) from being shown in the log.
8 years ago
Megan Marsh 487ceac784 fix Vet error.
8 years ago
bugbuilder b754b71519 return vsphere artifact to can build template
8 years ago
bugbuilder da54bf8e73 using only remoteFolder as parameter
8 years ago
Matthew Hooker f146e5903f
Merge pull request #5567 from bennu/vm-template-with-export-vm
8 years ago
bugbuilder 23f4d187e2 validating keep_registered and fixing skip_export issues
8 years ago
Matthew Hooker 0172a5c82b
Merge pull request #5511 from hashicorp/fix5507
8 years ago
bugbuilder 5ccba2caaa using virtual disk device to create datastorePath
8 years ago
Matthew Hooker 52558e4f75
check for nil body from upload response
8 years ago
Joe Ferguson 5c2f758053 🎨 Fix typo in "copyed" -> "copied" usages.
8 years ago
Matthew Hooker 1901c0385f
remove login_email from docker
8 years ago
Matthew Hooker abcc02dc64
filter password from logs
8 years ago
Matthew Hooker 0cf0a4336d
relay ovftool output.
8 years ago
Megan Marsh a7d25cd4c1 remove deprecation warning since we've been talked out of removing shell-local postprocessor
9 years ago
Matthew Hooker 4d3a762e85 Merge pull request #5207 from sandersaares/hyperv-vagrant-hardlink
9 years ago
bugbuilder 50904064e1 doesn't keep the original artifact
9 years ago
bugbuilder 75a4ca7351 adding artifact testing and using builder id
9 years ago
bugbuilder f1773a57f8 using vmx extension as default
9 years ago
bugbuilder 99dd19ccfd Adding correct reference to VM remote path
9 years ago
bugbuilder 24a8fddf03 showing artifact info in packer UI
9 years ago
bugbuilder 644ac5b367 enable vsphere-template to work with local builders
9 years ago
Megan Marsh fa177c52c2 put deprecation warning at end so it isnt lost in scrollback
9 years ago
Megan Marsh 4b7fd33f99 add deprecation warning to shell local provisioner
9 years ago
Sander Saares fb4db02586 Copy/link permissions 0777 -> 0755
9 years ago
Sander Saares 0ebf1d0da9 Link VHD instead of copy where allowed by OS
9 years ago
bugbuilder 6590dfaf82 using runner with pause func
9 years ago
bugbuilder abc21406cb Merge branch 'master' of https://github.com/hashicorp/packer into vsphere-tpl
9 years ago
Vijaya Bhaskar Reddy Kondreddi e45223a867 Fix -on-error issue not working.
9 years ago
bugbuilder f09a9c4653 using artifact ID
9 years ago
bugbuilder 138f54d9d3 Merge branch 'master' of https://github.com/hashicorp/packer into vsphere-tpl
9 years ago
bugbuilder fc4bee4598 VMware typo
9 years ago
bugbuilder 81272d1427 Updated mark as template to be able to use --force
9 years ago
Matthew Hooker 943e8e648a
properly handle decode error
9 years ago
Luke Farnell d9a5b69403 clean up ineffectual assignments
9 years ago
Justin Campbell 24c4029bb1 Remove date from atlas post-processor warning
9 years ago
bugbuilder 5e1d241db4 Close govmomi session
9 years ago
bugbuilder 786d3c0a9d updated documentation, vm_name mandatory and cleaning code
9 years ago
bugbuilder 08c6139da4 Create folder using the invotory path
9 years ago
bugbuilder fb52c42b3d Only add the folder when the error is NotFoundError
9 years ago
bugbuilder 7274bbb63d commends, documentation and var names updates
9 years ago
bugbuilder fa10616f57 Changes requested applied
9 years ago
bugbuilder 3cc9f204ac Moving vsphere-tpl to vsphere-template, fixed root folder creation and updated docs
9 years ago
bugbuilder b88fb8bdb2 Improved creation folder step and fixed documentation
9 years ago
bugbuilder 2830b4f3b0 fix test
9 years ago