Commit Graph

5884 Commits (2bdfd53756611eafed685a4edced00aa1011de4e)

Author SHA1 Message Date
upodroid f13099edfb rebase the branch
6 years ago
Kostas 8c07e21be8 update hcl2spec
6 years ago
Kostas 18c4f271ac rename variable; add docs
6 years ago
Marin Salinas 49e4d83cd7 refactor: remove oapi references in bsusurrogate builder
6 years ago
Marin Salinas aa3ec3fd0f refactor: change chroot builder to new SDK
6 years ago
Marin Salinas c0c0f003f9 refactor: fix bsu builder to accept proxy
6 years ago
Marin Salinas d813c3647d refactor: change bsuvolume builder to new SDK
6 years ago
Braunson b2047bd938
Put the correct AzureTags type in StateBag (#10014)
6 years ago
Kostas 72166febee allow to specify boot volume size
6 years ago
Megan Marsh 4c0ac6917e switch to using aws base config, which means we're using code tested and maitnained by the terraform crowd.
6 years ago
sylviamoss c8874c9382 improve docker_tag cast to avoid failures
6 years ago
Lik bdb1c47532
Pass QemuImgArgs to stepConvertDisk (#10001)
6 years ago
sylviamoss aa9c162c60 improve docker_tags artifact state read
6 years ago
sylviamoss e758891878 make shell-local post-processor return copy of previous artifact
6 years ago
Roman Tomjak b6ff793496
builder/proxmox: add support for io threads (#9969)
6 years ago
Niels Pardon a2ceb54b1a
Add support for external source image url (#9992)
6 years ago
Niels Pardon 29d23c13d0
Add additional debugging for OpenStack (#9972)
6 years ago
Sylvia Moss 96e3def294
Add pause_before_ssm config to pause before establishing the Session Manager session (#9988)
6 years ago
Megan Marsh 108455a7dc
Merge pull request #9983 from hashicorp/tools_upload_path
6 years ago
Megan Marsh d66b358100
Merge pull request #9991 from hashicorp/b-amazon-ssm-infinite-loop
6 years ago
Megan Marsh 8d0058dad6 allow user to set tools source path
6 years ago
Wilken Rivera 2f2b5683a2 amazon/ssm_driver: Update log polling logic
6 years ago
Adrien Delorme 654fade0a9
azure arm: make map[string]*string => map[string]string to simplify things (#9985)
6 years ago
Megan Marsh e41100290e
Merge pull request #9981 from hashicorp/assume_role
6 years ago
Megan Marsh 429d431365 Implement assume_role for Packer. This functionality is copied shamelessly
6 years ago
Megan Marsh 9170204a93
Merge pull request #9963 from hashicorp/implement_9868
6 years ago
sylviamoss 75d649e051 add step_remove_cdrom tests
6 years ago
sylviamoss 2de3f2755a add step_remove_floppy tests
6 years ago
sylviamoss 7cd6ee2b3b add FindDatastore driver test
6 years ago
sylviamoss b881a59bc8 refactor vcenter simulator setup
6 years ago
sylviamoss 7b1af2c4e8 add step_add_floppy unit tests
6 years ago
sylviamoss b46f587450 vsphere-clone use common step_add_cdrom
6 years ago
upodroid be56632f7e fix vendoring
6 years ago
upodroid 9b121e85f9 fix dodgy pointers
6 years ago
Upo 3f6230470b
Merge branch 'master' into google-impersonation
6 years ago
upodroid 2faacfd5d7 add service account impersonation
6 years ago
Marco Molteni 4d7e42220b
scaleway: add pre validate step (check image and snapshot names) (#9840)
6 years ago
Megan Marsh 77817f80a2
Merge pull request #9956 from hashicorp/do_6734
6 years ago
Megan Marsh b7b43a41f3 review cleanup
6 years ago
sylviamoss 778d77e4a2 add floppy and cd to vsphere-clone
6 years ago
Sylvia Moss d347bbec4c
Retry fleet creating only on invalid IAM instance profile (#9946)
6 years ago
Anthony Dong eca9b2f30d
aws ebs_surrogate: fix unhonored kms_key_id (#9959)
6 years ago
Sylvia Moss ce2047f30b
vSphere StepAddCDRom tests (#9955)
6 years ago
Megan Marsh 1d218d9e65 add QemuImgArgs option to set specialized flags in qemu-img
6 years ago
Megan Marsh 1052733fca Skip qemu-img convert if format of output file matches format of input file.
6 years ago
Megan Marsh 83ee4e7d13 miscellaneous qemu cleanup. Fix generator strings; generate code
6 years ago
Megan Marsh 3577c4a283 refactor multistep array construction in qemu builder to push majority of conditionals into their steps rather than the multistep constructor code.
6 years ago
Megan Marsh 9ac76be190 clean up step_run
6 years ago
Megan Marsh 5b714497e6 qemu: split config and config tests into their own files to match best practices from other builders
6 years ago
Megan Marsh 6c0c603fbf stub out test
6 years ago
Sylvia Moss 9737b85bbc
Remove usb_keyboard option (#9945)
6 years ago
Wilken Rivera b4be598148
Fix static check issues SA1019 for googlecompute plugins (#9950)
6 years ago
Sylvia Moss 7736ae6c67
Add VMware vnc_over_websocket option (#9938)
6 years ago
Sylvia Moss bdd736b800
Interpolate vagrantfile_template on Vagrant post-processor (#9923)
6 years ago
Megan Marsh bc69db2433
Merge pull request #9941 from hashicorp/cd_files_vsphere
6 years ago
Megan Marsh ef01bb5ba6 generated code
6 years ago
Megan Marsh e70e8c8651 add cd_files
6 years ago
Jeff Wong 5d15f5e2f4 No longer need a 15 second sleep
6 years ago
Megan Marsh f28cabb162
Merge pull request #9940 from hashicorp/fix_9936
6 years ago
Megan Marsh b08dd28b85 skip slot 7 in disk creation so we don't use reserved slot
6 years ago
Megan Marsh e00f6afff8
Merge pull request #9918 from hashicorp/fix_7408
6 years ago
Megan Marsh 6d2df7fb55
Merge pull request #9932 from hashicorp/cd_files_on_virtualbox
6 years ago
Jeff Wong 3c9969d841 cleanup goimports for linter
6 years ago
Megan Marsh eab7672519 regenerate code
6 years ago
Megan Marsh e723609ef1 regenerate hcl config
6 years ago
Megan Marsh 6935f47809 add tests for disk defaulting
6 years ago
Megan Marsh eae3fda901 refactor out disk defaulting so it can be used to default the vmx cdrom too
6 years ago
Megan Marsh 9140985ab0 implement cd_files for qemu builder
6 years ago
Megan Marsh f774983d36 implement on hyperv
6 years ago
Jeff Wong 018a1a5da0 Correct full clone logic
6 years ago
Jeff Wong 681d0f8467 Correct builder ID
6 years ago
Jeff Wong 99c3872a48 run go fmt
6 years ago
Megan Marsh 698bef434f track whether we've detached disks so we don't duplicate work
6 years ago
Megan Marsh a92491d17b capitalization
6 years ago
Andreas Botzner c032d463d3
Bootcommand Fix For Proxmox Builder (#9885)
6 years ago
Sylvia Moss caf65781d7
Add vsphere-clone mac_address option (#9930)
6 years ago
Andreas Botzner 3739970b84
Adds ability to specify interfaces for http_directroy and VM for the Proxmox builder (#9874)
6 years ago
Jeff Wong aa5eb770d0 DEV: use proper interfaces for vmCreator
6 years ago
Megan Marsh b73825bb72 Implement cd_files for virtualbox builders.
6 years ago
Marin Salinas abdb4bcfbf refactor: change ssh host to osc ssh host
6 years ago
Marin Salinas 645e5afa36 refactor: change bsuvolume builder to new SDK
6 years ago
Marin Salinas b844b7f1c7 refactor: change bsusurrogate builder to new SDK
6 years ago
Marin Salinas 007f6cce4c feat: add wait funtions for snapshot and omi in osc builders
6 years ago
Sylvia Moss 31f08909b4
Add usb_scan_codes option to use USB scancodes instead of VNC for remote builds (#9895)
6 years ago
Marin Salinas eed047b83b feat: add proxy support to osc builder
6 years ago
Jeff Wong cfece501d0 Implement proxmox-clone
6 years ago
Megan Marsh 8b9009c571
Merge pull request #9856 from OblateSpheroid/add_vnic_details
6 years ago
Megan Marsh 8ffa0d2060
Merge pull request #9842 from jason-azze/patch-1
6 years ago
Megan Marsh ca650c9602 fix struct comment for generation
6 years ago
Megan Marsh 0a02bd5b2a skip compaction when backing file is used, to prevent conversion that would make backing file pointless
6 years ago
js-g 9d5dedc3db tests: add some fields to config_test
6 years ago
Patrik f8e31bff12
feat(builder): bump scaleway to new sdk (#9902)
6 years ago
Wilken Rivera 0719f906d4
Replace if/else with simple if (#9913)
6 years ago
Megan Marsh 8aaa1bd7a6
Merge pull request #9796 from hashicorp/do_8778
6 years ago
js-g dd54651125 fix (builder/oracle-oci): add freeform and defined tags to create_vnic_details
6 years ago
Richard Turc b4ff0ea4bc
[builder/qemu] Skip resize step when skip_resize_disk is enable #9860 (#9896)
6 years ago
js-g f5dc260cf5 refactor (builder/oracle-oci): pass CreateVnicDetails as struct instead of map
6 years ago
Ronald van Zantvoort 7335695c84
qemu vnc: hardcoded lowerbound leaves negative ports
6 years ago
Calle Pettersson 905869308d Split proxmox builder into a common part and iso/clone builders
6 years ago
Megan Marsh d2dd158fe2 Implement cd_files option. The Addfile code is modified from the floppy_files
6 years ago
Megan Marsh dfe8aa51b0
Merge pull request #9845 from hashicorp/run_and_stream_helper_func
6 years ago
Megan Marsh 5120ad9d9a add test file
6 years ago
Megan Marsh 20d62654ae move runAndStream into a generalized helper function to enable easy local exectution in other places than just the docker builder
6 years ago
Lars Lehtonen 03a0beb683
builder/vmware/common: simplify type assertion switch (#9893)
6 years ago
Sylvia Moss ba74602d63
Allows publishing to a Shared Image Gallery with a different subscription id (#9875)
6 years ago
catsby 7a7d3ff350
Remove comments about sharing with catsby
6 years ago
Troy Lindsay d1a61cac33
Add NVMe controller support to vsphere-iso builder (#9880)
6 years ago
Troy Lindsay 602729ac23
Fix vsphere-iso acceptance tests (#9878) (#9881)
6 years ago
Rae Krantz ab23e839c8 update sharing test to req aws account id
6 years ago
Sylvia Moss 903deb9e6a
vSphere StepHardware tests (#9866)
6 years ago
Megan Marsh e96cc07a1a
Merge pull request #9853 from remyleone/boottype_local
6 years ago
Sylvia Moss 24dbd0a28b
Fix iso_path validation regex (#9855)
6 years ago
Wilken Rivera f4556fd3f1
Merge pull request #9831 from hashicorp/remedial_remote_export_config_tests
6 years ago
js-g f74a425661 feat (builder/oracle-oci): pass CreateVnicDetails to instance
6 years ago
Sylvia Moss 58a0bdd780
Look for a default resource pool when root resource pool is not found (#9809)
6 years ago
Wilken Rivera 03a374f4b6
Fix linting issues for SA6005 check (#9854)
6 years ago
GennadySpb 804fefef17
yandex-import: allow set custom API endpoint (#9850)
6 years ago
OblateSpheroid 0ad26cce01
Feat (oracle-oci): allow freeform and defined tags to be added instance (#9802)
6 years ago
Rémy Léone ecd1a49a35 change default scaleway boottype to local
6 years ago
Andreas Botzner e4f975fae1
Allows for the mounting of ISOs when a Proxmox VM s created. Same as … (#9653)
6 years ago
Sylvia Moss 942bfbf221
Add driver mocks and write tests to steps Remote Upload and Create VM (#9833)
6 years ago
Megan Marsh 1c5bc41beb refactor ovftool validation into vmware driver
6 years ago
Megan Marsh bbc3a5b0d1 add tests to make sure prepare for export defaults properly
6 years ago
Marin Salinas e0badb3fb7 refactor: update step_update_omi_attributes and create_tags to new OSC SDK
6 years ago
Megan Marsh a6d5106cd7 Allow "export" to ovf/ova for local vmware builds in addition to esx ones.
6 years ago
Megan Marsh e9b526ee2d
Move step_create_disk into common folder, and add to vmx builder (#9815)
6 years ago
Marin Salinas 8885a5ef31 refactor: update step_create_omi to new OSC SDK
6 years ago
Marin Salinas f0dc26613a
Merge pull request #7 from marinsalinas/step_deregister_omi
6 years ago
Adrien Delorme 0d0bd9ce75
name fields of PolicyDocument correctly in HCL (#9812)
6 years ago
Adrien Delorme a0c09e85df
retry spot instance creation when an "Invalid IAM Instance Profile name" error pops up (#9810)
6 years ago
Sylvia Moss 2152fa3313
Accept content library path in iso_paths (#9801)
6 years ago
Marin Salinas 8166dad533
Merge pull request #5 from marinsalinas/step_cleanup_volumes
6 years ago
PacoDw 8274d4848c chore: added forece_deregister in the test case to verify the step_deregister_omi
6 years ago
PacoDw 071854ea4a chore: implemented OSC API in step_deregister_omi
6 years ago
PacoDw a13dfe1f42 chore: added GetRegion() and NewOSCClientByRegion functions
6 years ago
PacoDw 60bd61dc18 chore: removed security group filter function, it was moved to step_security_group file
6 years ago
PacoDw c3a4b60ea5 chore: implemented OSC API in step_security_group
6 years ago
Marin Salinas 7a45e4c8b0 refactor: change step tag bsu volumes to new OSC SDK
6 years ago
Marin Salinas c58d6f9b33 refactor: migrate run vm step to new SDK
6 years ago
Marin Salinas 6f0bb33c9a refactor: change tags ssh file to new OSC SDK
6 years ago
Marin Salinas e5c14044fb refactor: change tags file to new OSC SDK
6 years ago
Marin Salinas addc3dd6e7 refactor: change step_cleanup_volumes to new OSC SDK
6 years ago
Marin Salinas d9a7626249
Merge pull request #4 from marinsalinas/step_public_ip
6 years ago
PacoDw 7745369dce chore: set true associate_public_ip_address attribute to test the step_public_ip
6 years ago
PacoDw 86966ecfee :chore: implemented OSC API in pre_public_ip step
6 years ago
Sylvia Moss ada2a431ef
Modularise vCenter rest client (#9793)
6 years ago
Sylvia Moss 99800619b7
Add HCL2 examples to the virtualbox builders (#9788)
6 years ago
Sylvia Moss a1524bf96a
Add option to also import OVF templates to the Content Library (#9755)
6 years ago
PacoDw 232d5a3ce6 chore: changed oapi to osc
6 years ago
Megan Marsh a2cfaace59 extract output dir configuration and defaulting into the step_output_dir, using pointers to make sure they get set properly back on the main config
6 years ago
Megan Marsh 3b2bedf794 implement a remote_output_directory option, and heavily comment output code
6 years ago
PacoDw 43e9d43ebd chore: removed API attribute
6 years ago
Marin Salinas 8b2cdc5821 refactor: change step_network_info to new OSC SDK
6 years ago
Marin Salinas 8649496c6c refactor: change new sdk on step_source_omi_info
6 years ago
PacoDw 4431bb87b2 :chore: added api key to specify the API connection
6 years ago
PacoDw 823b957a1f :chore: implemented OSC connection in pre_validate file
6 years ago
PacoDw 22481d1ac2 :chore: added OSC Connection in builder file
6 years ago
PacoDw 1fbe715c13 :chore: added OSC Connection in builder file
6 years ago
Megan Marsh b0d2201d55
Merge pull request #9782 from hashicorp/fix_9151
6 years ago
Megan Marsh 0a5cd953fc fully destroy vm if it was cancelled or errored
6 years ago
Megan Marsh aa2418cf01
add progress tracker to vmware-esx iso upload. Add colored prefix to … (#9779)
6 years ago
Megan Marsh d74b47b734
Merge pull request #9777 from hashicorp/fix_9756
6 years ago
sylviamoss 1a0d5a93ee fix max_attempts typo
6 years ago
sylviamoss 788dc32598 add aws_polling config option to override env variables
6 years ago
PacoDw 1bfb2d9170 :chore: implemented transport file to make the OSC API Connection
6 years ago
PacoDw 1055007cba :chore: added OSC API Client Connection
6 years ago
Isaac Buckman 46a26a3d9e
Fix Hyper-V boot command refs #5291 (#9765)
6 years ago
Megan Marsh 8b4993e44c
fix docs for kms key ids (#9766)
6 years ago
PacoDw 74f868da37 :chore: changed the AMI with an existing AMI to work fine with the test case
6 years ago
Megan Marsh acba3ea3e7
Document network path (#9762)
6 years ago
Megan Marsh e97c56dc72
Merge pull request #9559 from hashicorp/fix_9482
6 years ago
Wilken Rivera 55812fe8a5 Handle error of deferred deletion
6 years ago
Wilken Rivera 5700f74c8c Handle lease not present error
6 years ago
Wilken Rivera d91839b93e Update deletion logic for OS disks
6 years ago
Wilken Rivera ba6d11d518 Remove StepDeleteOSDisk in favor of StepDeployTemplate#Cleanup
6 years ago
Megan Marsh 54469c4728
Add all of the custom AWS template engines to GeneratedData for use b… (#9751)
6 years ago
Sylvia Moss e475db6a66
check for ip after timeout (#9748)
6 years ago
Wilken Rivera aed97e1a8b Ensure any active leases are brokend before deleting
6 years ago
Wilken Rivera 920da9d0a4 Fix up code to remove some additional steps
6 years ago
Megan Marsh f8bb9008c0
Merge pull request #9697 from backerman/personal/backerman/9695
6 years ago
Wilken Rivera 7c28d5590c Remove StepDeleteResourceGroup in favor of StepDeploymentTemplate#Cleanup
6 years ago
Sylvia Moss 80960d7a64
Fix vsphere boot command and check for context cancelation when waiting for ip (#9739)
6 years ago
Brad Ackerman 23d5432333
Revert inadvertently-changed import.
6 years ago
Brad Ackerman 109b2a0ca9
Build constraints don't seem to work on test.
6 years ago
Brad Ackerman 94c9b87431
Only run on platforms supported by chroot.
6 years ago
Brad Ackerman 33eb8483ba
Get some tests in here.
6 years ago
Megan Marsh 8f362656ee
Update builder/amazon/ebs/step_create_ami.go
6 years ago
Megan Marsh 484dbfe6ad improve error handling when waiting for image so that the resourcenotready error is bubbled up more clearly without verbose logging turned on
6 years ago
Megan Marsh 04d7a10aa0
Merge pull request #9714 from hashicorp/fix_9688
6 years ago
Megan Marsh 4964c54f60 update docs to state resource id must be fully qualified
6 years ago
Megan Marsh 25f2ec48d3
add network_name option to vmware builder to make it match the network option on the vsphere builder, so vmware users needn't update vmx data just for the network name (#9718)
6 years ago
Megan Marsh 3f61498704
Merge pull request #9704 from ntoofu/f-vsphere-export-permission
6 years ago
Sylvia Moss dcacf7ad4c
Add vSphere HCL examples to the docs (#9674)
6 years ago
Megan Marsh aede34079d provide more helpful error message than the one returned by the client, without context
6 years ago
ntoofu a53e81d9a2 Make docs more clear
6 years ago
jhawk28 6b8d086e94
alt, ctrl, and shift should be outside variables (#9702)
6 years ago
Megan Marsh 825deef43d
Merge pull request #9665 from hashicorp/vsphere_clone_customization
6 years ago
Sylvia Moss dd37a10355
fix configuration_parameters (#9713)
6 years ago
ntoofu 5493285f65 Add `directory_permission` config option to `vsphere` builder
6 years ago
Brad Ackerman fb1a4bd86f
Add placeholder diskattacher for other OSes.
6 years ago