Commit Graph

307 Commits (90fb09e52a2558c59eaf87a3adabcb3b59cd1d8d)

Author SHA1 Message Date
nywilken d2a9e6b32e Format code with `gofmt -s -w`
6 years ago
Sylvia Moss 0b7251a4bb
Share .Device and .MountPath between builders, provisioners and post-processors (#8621)
6 years ago
Adrien Delorme 731904d3d2 mapstructure-to-hcl2: use accessor for named types and not named type + go genrate + tests
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 fcda07ee6a clarify docs by removing unclear string (#8439)
6 years ago
Paul Meyer 3be7d81ce2 Move common steps together
7 years ago
Paul Meyer e6dfe301ac Move CommandWrapper & ShellCommand to common
7 years ago
Adrien Delorme cf1555bf17 Merge remote-tracking branch 'origin/master' into artifact-tree
7 years ago
Paul Meyer 977ca5be1c Add StepCopyFiles and StepChrootProvision
7 years ago
Paul Meyer 9a3e6661b1 Add StepMountExtra
7 years ago
Paul Meyer addbdedea9 Add StepPostMountCommands
7 years ago
Paul Meyer 4d750ddefa Reuse amazon/chroot/step_pre_mount_commands.go
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme 8b8c2fc138 builder.amazon.chroot: remove specific BlockDevice definition
7 years ago
Megan Marsh 2e20facc8b fix tests
7 years ago
Megan Marsh e283023d9b make sure step_register_ami in chroot builder respects encryption and ami skip build retion values once the copy happens
7 years ago
Adrien Delorme 792f61a4ad fmt
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme 9d0bc476d9 add ommited struct interpolation
7 years ago
Adrien Delorme 5517d41468 make sure all documentation fields are there
7 years ago
Megan Marsh 1a6adadb89 convert EnableAMIENASupport to trilean in code
7 years ago
Adrien Delorme 02421bad33 simplify BlockDevice prepares
7 years ago
Adrien Delorme a476ab79d7 document chroot builder using partials
7 years ago
Adrien Delorme dcc22df609 aws: move the OmitFromArtifact field in ebssurrogat where it's being used
7 years ago
Adrien Delorme a86aae1c7e mode KmsKeyId to chroot block device, as it's only used there
7 years ago
Adrien Delorme c696878d2e aws block devices mapping: BlockDevices.Build -> BuildEC2BlockDeviceMappings()
7 years ago
Adrien Delorme ff2e0298ba simplify block devices utilisation by removing intermediary types
7 years ago
Adrien Delorme e09f3fbd02 amazon: update docs & links
7 years ago
Adrien Delorme e6cbb013ba add // go:generate struct-markdown to all previously edited files
7 years ago
Adrien Delorme f1917edd34 generate the comments for config struct of builders scraping doc website
7 years ago
Megan Marsh 2cfba56265 fix typos
7 years ago
Megan Marsh 02c9f24531 allow user to set architecture
7 years ago
Megan Marsh 2c352cc681 add tests for step_ami_region_copy
7 years ago
Megan Marsh 201c8c1332 make sure that you encrypt using the provided kms key id and not the default
7 years ago
Adrien Delorme aee73d745d update code after go mod update
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
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 a4bf94dd3c change Builder to be passed a context for cancellation
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Megan Marsh 0196d7f835
Merge pull request #7370 from sargun/allow-users-to-specify-custom-block-device-mapping
7 years ago
Megan Marsh 3ed9fe6dee remove unused imports
7 years ago
Sargun Dhillon 601e754438 amazon/chroot: Allow creating new block device mappings !not fromScratch
7 years ago
Megan Marsh 0abd16527e
Merge pull request #7337 from sargun/fix-chroot-builder
7 years ago
Adrien Delorme f03cbd8a10 aws: allow to pass nil bool as encryption parameter
7 years ago
Sargun Dhillon 142a84ef43 amazon/chroot: Refactor step_register_ami for testing EBS-related behaviour
7 years ago
Sargun Dhillon d3c65ee77d builder/amazon/chroot: Fix building PV images with mount_partition
7 years ago
Megan Marsh 3704a053d0 move region validation and credential wait into step pre validate
7 years ago
Megan Marsh 035c3506ba manually set proxyfromenvironment in default http client for ec2 sessions
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Matt Dainty feb8067c7d Convert `ena_support` to a pointer
8 years ago
Matthew Hooker 9181570bc3
remove stray struct dumps in logs
8 years ago
Megan Marsh 79093da6ad skip region validation in tests that don't care; refactor Prepare func so we can test region validation logic with a mock
8 years ago
Megan Marsh 93f1155a14 remove test-related special casing
8 years ago
Sargun Dhillon 63d784023f Add support to support non-gp2 volume types for building from_scratch
8 years ago
Sargun Dhillon 07ce820c70 Enable setting the volume type when building with the Amazon Chroot builder
8 years ago
Megan Marsh b94e6e913e
Merge pull request #6670 from sargun/fix-ena-on-pv
8 years ago
Sargun Dhillon 902497d6ce Allow users to build hvm images from pv images to have ena_support
8 years ago
Megan Marsh e4f6b6f720 fix chroot communicator to properly escape quotes
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Anshul Sharma 885ecb0790
Issue-6309 Amazon Chroot Provider
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
Megan Marsh 87a93e84ac sh -c to execute command to accomodate communicator change
8 years ago
M. Marsh 62e1323577
Merge pull request #5956 from hashicorp/dedupe_shell_local
8 years ago
Megan Marsh e670eed315 Add new option, nvme_device_path, so that we can properly mount nvme block devices.
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 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
Megan Marsh 59e3ec722d allow user to mount entire block device in chroot builder
8 years ago
Matthew Hooker 21812fa17f
Add volume and run tags if in us-gov/china
8 years ago
Matthew Hooker fad4d5c272
update tests for mapstructure behavior changes
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
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.
9 years ago
Matthew Hooker f681faa296
fix tests
9 years ago
Matthew Hooker c65fa8490d
fix various bugs deregistering AMIs
9 years ago
Megan Marsh 85ad1f58fb include ena_support and sriov_support in chroot and instance docs
9 years ago
Megan Marsh 2d4bc70d7b use ami prefix to make it clear that these variables are amazon specific
9 years ago
Megan Marsh 9e2e467b31 Allow granular modification of sriov and ena enhanced networking options in amazon amis. Maintain old functionality.
9 years ago
Megan Marsh 7da52e1f77 Merge pull request #5250 from hashicorp/repro_3399
9 years ago
Megan Marsh 14b2d04332 make force_deregister work in all regions, not just original region.
9 years ago
Sean Chittenden cd84b17923
Fix building packer on GOOS=solaris
9 years ago
Megan Marsh e9ec705497 use block device mappings to know whether a snapshot existed before packer's current run. If yes, don't delete the unencrypted snapshot.
9 years ago
Matthew Hooker 58e386827a
fix typo
9 years ago
Matthew Hooker 56c513088b
I think this was the intention
9 years ago
Rickard von Essen 3833d34829
builder/amazon: Cleaned up credential handeling
9 years ago
Megan Marsh b8c2a5fd43 fix step initializer everywhere StepAMIRegionCopy is called
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker cc11ec3566
check for a couple errors
9 years ago
Matthew Hooker d1b20b3d9c
remove a bunch of dead code.
9 years ago
Matthew Hooker 230079f73a
spell fixes
9 years ago
Matthew Hooker e4aa2a34ca
builder/amazon-chroot: nullable copy_files
9 years ago
Matthew Hooker 50d9546658
builder/amazon: set force_deregister to true on -force
9 years ago
Matthew Hooker 61976dfd86 Merge pull request #4578 from life360/enable_ena
9 years ago