Commit Graph

3660 Commits (b68f214ca49143c91e1f593b2c19f4cabb69dcbe)

Author SHA1 Message Date
Adrien Delorme 4fdf5714a6 builder.scaleway: use c.Comm for ssh
8 years ago
Adrien Delorme 0f9eddda3a builder.oracle: use c.Comm for ssh
8 years ago
Adrien Delorme 92570a2725 builder.openstack: use c.Comm for ssh
8 years ago
Adrien Delorme 4982627dd2 builder.gcp: use c.Comm for ssh
8 years ago
Adrien Delorme e0e6b0b8f7 builder.cloudstack: use c.Comm for ssh
8 years ago
Adrien Delorme ef4ca9c48e builder.amazon: use c.Comm for ssh
8 years ago
Adrien Delorme dffcbb7a35 builder.alicloud: use c.Comm for ssh
8 years ago
Adrien Delorme 9a9b82715b config.Comm.SSHKeyPair => SSHKeyPairName
8 years ago
Adrien Delorme 3a4bb26150 builder.aws: use key pair from comm struct
8 years ago
Adrien Delorme 293c485372 builder.aws: use SSHAgentAuth from Comm
8 years ago
Adrien Delorme ef08c441c9 builder.aws: use Comm field for StepKeyPair & StepGetPassword
8 years ago
Adrien Delorme 7c358eed2f removed unused builder/azure/common/lin.StepGeneralizeOS struct
8 years ago
Adrien Delorme 3d46fbd4f2 removed unused builder/azure/common/lin.StepCreateCert struct
8 years ago
Adrien Delorme 25de7ad1f2 PrivateKey => PrivateKeyFile
8 years ago
Adrien Delorme 324c46279b up test
8 years ago
Adrien Delorme 5369c15459 helper: communicator.SSHFileSigner => ssh.FileSigner
8 years ago
Adrien Delorme b83c72fd54 more private keys in config
8 years ago
Adrien Delorme 336cac29d4 also use config.SSHPrivateKey for azure-arm builds
8 years ago
Adrien Delorme d49ad12895 update gcp ssh tests
8 years ago
Adrien Delorme 663c8134ef GCP: put ssh public/private key in config
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Megan Marsh e4f6b6f720 fix chroot communicator to properly escape quotes
8 years ago
Matthew Hooker 7519037562
Merge pull request #6629 from hashicorp/travisbuild
8 years ago
Matthew Hooker 3f1a9766f4
formatting verb fixes for go 1.11
8 years ago
Matthew Hooker e41e99954d
go 1.11 format rules
8 years ago
Megan Marsh c5b346b07b
Merge pull request #6393 from DanHam/fix-hyperv-export
8 years ago
Megan Marsh bf191d1ef6
Merge pull request #6204 from arizvisa/GH-6197
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Rickard von Essen 23f62f221e Only filter SG's on VPC if it's set. Only use VPC's and Subnets that are available
8 years ago
Megan Marsh fa99f931b7
Merge pull request #6601 from hashicorp/fix_6536
8 years ago
Adrien Delorme 6bbcd3e914
Remove remaining unused ssh config funcs and add missing calls (#6622)
8 years ago
Rickard von Essen 533967cb66 builder/amazon: Add suppport for security_group_filter
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Megan Marsh 1f79b430ee
Merge pull request #6610 from hashicorp/filter_logs
8 years ago
Megan Marsh 7f518cc2d0
Merge pull request #6616 from hashicorp/fix_6496
8 years ago
Megan Marsh 31d4f8af45 use a time.Duration instead of a hardcoded ms
8 years ago
Rickard von Essen 9840862757 builder/amazon: Add suppport for vpc_filter and subnet_filter
8 years ago
Rickard von Essen 70cfafb75c
Merge pull request #6490 from tcarrio/most-recent-image-openstack
8 years ago
Tom Carrio e2fe5cd775 Updated test cases to cover bad filters and empty()
8 years ago
Megan Marsh bb319fb1e8
Merge pull request #6607 from hashicorp/gcp_min_cpu_platform
8 years ago
Megan Marsh 918db58604 added new template variables to replace PACKER_KEY_INTERVAL with tunable key and keygroup intervals depending on driver used
8 years ago
Adrien Delorme e5ffa9e5b3 use SSHConfigFunc on right member in builder/parallels/pvm/builder.go
8 years ago
Adrien Delorme fa44a4546f use ssh.ParsePrivateKey where we can
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
Rickard von Essen 057a635cab
Merge pull request #6532 from sermilrod/Allowing-fixed-port-in-forwarding-rules
8 years ago
Rickard von Essen 3b49caaf40 OpenStack: refactored how source_image_filter is handled to remove reflection
8 years ago
Sergio Millan Rodriguez befdb59da6 renaming public_ssh_port to public_port
8 years ago
Rickard von Essen bd1961b927 Correctly fail if no Image matches filter
8 years ago
Adrien Delorme b038cd10f5 GCP: Allow to set MinCpuPlatform
8 years ago
Adrien Delorme e37f126cf1 update gcp google.golang.org/api/compute/v1/
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Matthew Hooker 31fcfe4bc2 PoC for filtering logs
8 years ago
Adrien Delorme 6b3844a64f
Revert "allow to use ISO images in-place v.s. copying them"
8 years ago
Tom Carrio c5fe1e9e34 Updated to @rickard-von-essen's code review suggestions, including:
8 years ago
Tom Carrio 5ca5c037eb Updated filter parser to log all invalid values/fields provided by user
8 years ago
Tom Carrio fc19cd8d28 Updated limit logic, removed limiter, updated test cases and sort field used
8 years ago
Tom Carrio 4147062802 Internally handling most_recent logic.
8 years ago
Tom Carrio 2d5d1890d4 Switching sort method
8 years ago
Tom Carrio 8d98237a15 I should have a git-status alias to make fmt
8 years ago
Tom Carrio 036918b81b Updated to comments in PR#6490 - Thanks @haxorof
8 years ago
Tom Carrio db3d2682b5 Updated allowed filters to tags, visibility, owner, and name. Test cases updated and passed
8 years ago
tcarrio e9e58e6b2b Tags field parsed from "tags" and updated test case
8 years ago
Tom Carrio c8fd53d60b make fmt
8 years ago
Tom Carrio de9999ecb9 Updated tag to slice, docs, comments, only active images, source_image_name supercedes filter name
8 years ago
tcarrio e776ad51a9 Removing statement from old image erroring logic
8 years ago
tcarrio 3a6ab0fc0e Updated test logic and Error->Errof for formatted output.
8 years ago
tcarrio 6dc71590eb Updated OpenStack Builder docs and tests
8 years ago
tcarrio 94018c691c Fixed step interface, added step to builder, passing all tests for new image_query.go
8 years ago
Tom Carrio a87c8fec38 Fixing up reflection issues on ListOpts builder
8 years ago
Tom Carrio 810a602a1b Added testing on query helper functions
8 years ago
Tom Carrio 33caed3531 Completed filters and most_recent processing using OpenStack imageservice API
8 years ago
Megan Marsh 00c6ec979f do 30 minutes not 25
8 years ago
Megan Marsh 00de0f4996 increase the timeout for waiting for an ami to become available
8 years ago
Megan Marsh 5dbd71b857
Merge pull request #6593 from hashicorp/iso_inplace
8 years ago
Andrei Ozerov 6bf442f039 OpenStack builder: fix floating IP docs
8 years ago
Andrei Ozerov 103403db48 OpenStack builder: do not always use floating IPs
8 years ago
Andrei Ozerov 5d6ba4301d OpenStack builder: fix floating_ip_pool validation
8 years ago
Andrei Ozerov 1af899248b OpenStack builder: allow floating IP network name
8 years ago
Andrei Ozerov c9047cbfbe OpenStack builder: update floating IP params
8 years ago
Andrei Ozerov 0eef9b4292 OpenStack builder: floating IP refactoring
8 years ago
zhuzhih2017 2eafdb33a2
Merge pull request #6588 from xiaozhu36/master
8 years ago
Andrei Ozerov 3316d40527 OpenStack builder: make volume type optional
8 years ago
Andrei Ozerov 572cdeecd1 OpenStack builder: create image from blockstorage
8 years ago
Andrei Ozerov c0ffe7eb89 OpenStack builder: add StepDetachVolume
8 years ago
Andrei Ozerov 005f7e56a7 OpenStack builder: cleanup blockDeviceMappingV2
8 years ago
Andrei Ozerov d51e683bf7 OpenStack builder: add Block Storage volumes
8 years ago
Megan Marsh ac3554a37f
Merge pull request #6594 from rickard-von-essen/mode-check
8 years ago
Megan Marsh 3362897c44
Merge pull request #6585 from hashicorp/do_6584
8 years ago
Rickard von Essen 074b170ed4 Fixed exec bit
8 years ago
Rickard von Essen 25452945d7
Merge pull request #6546 from mzupan/do-add-tags
8 years ago
Adrien Delorme 17f2949e36 remove stuttering; ISOConfig.InplaceISO -> Inplace
8 years ago
Rickard von Essen 889c89ec79 Validate tags
8 years ago
Adrien Delorme 82e480a285 allow to use ISO images inplace v.s. copying them
8 years ago
Rickard von Essen 9e9f0d2ab9
Merge pull request #6570 from cb-oath/openstack-builder-ports
8 years ago
Rickard von Essen c962e7b856 Simplified loop code
8 years ago
Megan Marsh 71cad4f2a9 fix tests
8 years ago
He Guimin 1a17b799f1 Support describing and checking source image coming from marketplace
8 years ago
Megan Marsh 250da0ab49 fix security hole with ami filter
8 years ago
Christopher Boumenot 39fc8593de
Merge pull request #6576 from double16/vagrant-azure
8 years ago
Patrick Double 2868971a9b Fixes per code review
8 years ago
Patrick Double d796edc783 Add to vagrant post-processor support for Azure
8 years ago
Megan Marsh 5585855265
Merge pull request #5165 from bennu/esxi-remote-cache
8 years ago
Megan Marsh 99d1a1a297
Merge pull request #6541 from rsclarke/qemu-ssh-agent
8 years ago
Megan Marsh 57dd1c3ca2
Merge pull request #6543 from thedrow/lxc-root-path
8 years ago
chbell43 aaa42543e6 fix formatting
8 years ago
chbell43 5f9d4b729f add support for ports to the OpenStack builder
8 years ago
Nye Liu 6d6212b75e Fix issue #6561 - Pass "--config" option correctly to "lxc launch"
8 years ago
Christopher Boumenot a3e6153068 azure: implement clean_image_name
8 years ago
Felix Yan f69ab4ed77
Fix a typo in config_test.go
8 years ago
Mike Zupan 11271ead59 Change name to tags
8 years ago
Mike Zupan 7081fe990b Adding in droplet tags on creation
8 years ago
Omer Katz 26dd6441e0
Locate lxc root directory when exporting as well.
8 years ago
Omer Katz 808df82eea
Remove privilege escalation with sudo when copying files. Preserve file permission mapping when copying files.
8 years ago
Omer Katz e5b740e223
Determine lxc root according to the running user.
8 years ago
rsclarke 887e694534 add ssh agent support for qemu builder
8 years ago
Anshul Sharma c1edcd3774
amazon-ebssurrogate clean up volumes
8 years ago
bugbuilder 2c4f703ff8 Merge
8 years ago
Sergio Millan Rodriguez d90dfc096a adding public_ssh_port flag to use a fixed port in the forwarding rules
8 years ago
Christopher Boumenot 9c6b4287e5
Merge pull request #6480 from hashicorp/pr-azure-password-requirements
8 years ago
Megan Marsh 5bbb6633cf
Merge pull request #6279 from ChrisLundquist/clundquist/lxc-perms
8 years ago
Megan Marsh 07b6bc0c4f
Merge pull request #6504 from sharmaansh/6309-amazon-chroot-create-volume-tags
8 years ago
Megan Marsh d2823622e5
Merge pull request #6249 from iammattcoleman/add-use_backing_file
8 years ago
DanHam da21c25791
Convert incorrect 'vmxc' -> 'vmcx' in codebase, docs and template opts
8 years ago
DanHam 674bad0ab4
Break very long lines for readability
8 years ago
DanHam 2bb5a92755
Fix error in comment due to copy/paste from VMware step
8 years ago
DanHam 36bd2f5691
Fix an error with an error. Add some comments.
8 years ago
DanHam ee0a2469eb
Add ability to specify 'temp_path' for the build directory to VMCX builder
8 years ago
DanHam 8032c8151a
Tests for step to create output directory
8 years ago
DanHam f027585a93
Tests for step to create build directory
8 years ago
DanHam ed5bebfa8c
Change variable/statebag key name to better convey purpose
8 years ago
DanHam 00276f2f64
Change step name to better illustrate purpose of step
8 years ago
DanHam b386e567db
Change filename to better illustrate purpose of step
8 years ago
DanHam d2390f464d
Actually implement the function for the driver
8 years ago
DanHam 181bb0ba23
Add calling code and skeleton driver to make tests pass
8 years ago
DanHam 0a4ec13323
Tests for func to move VHDs to output dir when skip_export: true
8 years ago
DanHam 32148168bd
Introduce a new step to collate build artifact at the end of the build
8 years ago
DanHam ee7fa27ada
Fix up tests. Ensure export step stores the export path in state
8 years ago
DanHam 232dd8f0a6
Remove code to preserve legacy export dir structure from the export step
8 years ago
DanHam c2437ba592
Remove the option to place the VHD files in a separate directory
8 years ago
DanHam d5d82c32b2
Changes to the export process have made 'inline' build of disks redundant
8 years ago
DanHam 35b4e87c42
Add tests for export VM step
8 years ago
DanHam 30a71da8e7
Add tests for disk compaction step
8 years ago
DanHam 09028c14a3
Reintroduce the disk compaction process as a unique step
8 years ago
DanHam da2df69301
Remove disk compaction from the export step
8 years ago
DanHam c6b9d9ce90
Add checks/error reporting to compaction process
8 years ago
DanHam 534fc4a473
Ensure the export directory structure matches that of previous versions
8 years ago
DanHam dc46848f89
Remove now redundant function to copy exported VM files
8 years ago
DanHam 3fc2defb6d
Refactor the export step for Hyper-V ISO and VMCX builders
8 years ago
Matthew Hooker 814c1cf2b2
spellfix
8 years ago
Andrew Pryde 67f039509a
Merge pull request #6498 from neumayer/ocimetadata
8 years ago
Anshul Sharma 885ecb0790
Issue-6309 Amazon Chroot Provider
8 years ago
xxx 7630268e1d Incorporate review comments
8 years ago
James Nugent 9fffe4056e
Merge pull request #5452 from smaato/tag-spot-requests
8 years ago
Sander van Harmelen 451cbd8aa9
Merge pull request #6487 from sermilrod/Honour-cloudstack-projectid
8 years ago
Sergio Millan Rodriguez f4020835d6 flag to setup networking without firewall rules
8 years ago
Sergio Millan Rodriguez 472a7820eb Using UI keypair meaningful message
8 years ago
Sergio Millan Rodriguez e729b21212 passing projectid to getRootVolumeID rather than the whole config struct
8 years ago
Mark Meyer 2fec76ea87 Check if spot price is empty, when spot_tags is set
8 years ago
Megan Marsh b6b907f523 read in the environment variables that government wait time and polling time for the AWS wait in step_stop_ebs_volume
8 years ago
Sergio Millan Rodriguez a41a4658ee make packer builder honour projectid setting if provided
8 years ago
Sergio Millan Rodriguez eae0556dc5 Add option to enable/disable create firewall/acl rules
8 years ago
Megan Marsh 1d15f09e36
Merge pull request #6440 from DanHam/simplify-vmx-find-disks
8 years ago
Christopher Boumenot fa7f54cb55 azure: satisfy Azure password requirements
8 years ago
Megan Marsh 8e22803099 fix loading of environment variables for managing aws waiters
8 years ago
Megan Marsh 12f1b2421d
Merge pull request #6332 from hashicorp/do_6177
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 14166fdd99 update amazon import docs to include the env vars for setting aws waiter delays and timeouts
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
M. Marsh 62d9dcb822
Merge pull request #6477 from jabbera/fixMaxResourceGroupLength
8 years ago
Mike 5ea6429cd6
managed_image_resource_group_name max length change
8 years ago
M. Marsh 8e852af1eb
Merge pull request #6448 from DanHam/fix-esxi-displayName
8 years ago
Michael Gibson 7e4fb9adb5
vnc_bind_address not getting passed through to qemu
8 years ago
M. Marsh adfee4933a
Merge pull request #6437 from hashicorp/retry_convert
8 years ago
Mark Meyer 3dbf1cb371 Enable tagging of spot requests
8 years ago
DanHam a39c5887fb
Test we halt if a bad path is set in vmx_path
8 years ago
DanHam 21117e5d38
Test we fail if displayName is not stored in the statebag as 'display_name'
8 years ago
DanHam 88c43ec98d
Test we fail if the displayName key is not found in the VMX
8 years ago
DanHam d68d26a6e5
Fix tests: We now need to set `displayName` key/val pair in the test VMX
8 years ago
DanHam 902cea0f30
ESXi: Fix failure to export VM when `displayName` differs from `vm_name`
8 years ago
DanHam cd7d3812ea
ESXi: Fix failure to get VM IP when `displayName` differs from `vm_name`
8 years ago
DanHam 3eab3cc99b
ESXi builds require we store the value of displayName in the statebag
8 years ago
Edouard Bonlieu 4b1f96b527
Merge pull request #6439 from jbonachera/scaleway-config-bootscript
8 years ago
M. Marsh 8658eaf1ac
Merge pull request #6424 from DanHam/fix-esxi-export-hang
8 years ago
DanHam 939aa7e289
Add test: We shouldn't error when main remote options are unset
8 years ago
DanHam efcdf60d96
Add tests to ensure remote_password is set when exporting with ovftool
8 years ago
DanHam 0d9134bdbc
Fix existing tests as they were not doing what they should have been
8 years ago
DanHam eee16262b6
Remove duplicate/redundant test
8 years ago
DanHam c8199458a7
Prevent hang on export for remote ESXi build due to empty remote_password
8 years ago
M. Marsh 406f4eeb93
Merge pull request #6394 from conradjones/master
8 years ago
Robert Neumayer 22e5523faa Allow instance metadata to be specified in config
8 years ago
DanHam fff72780e1
Further simplify enumeration of attached disks for VMware VMX builder
8 years ago
Conrad Jones d9b6924986 Add cloneType to fusion driver
8 years ago
Julien BONACHERA eda85a4daf
scaleway: add 'bootscript' configuration parameter
8 years ago
Megan Marsh 2b2c860df8 make the convert retryable in case it takes a bit to release a lock
8 years ago
M. Marsh c67d59515c
Merge pull request #6370 from arizvisa/patch-1
8 years ago
Owain Lewis b600be009d Pass context into OCI client
8 years ago
M. Marsh 5a6a389e66
Merge pull request #6415 from brumfb/skip_invalid_lease_files
8 years ago
M. Marsh 78c0b7bd9c
Merge pull request #6408 from harveylowndes/oci-support-custom-instance-display-name
8 years ago