Commit Graph

813 Commits (dev_version_changes)

Author SHA1 Message Date
Megan Marsh d0a4a71da8
Merge pull request #10927 from hashicorp/fix_typo
5 years ago
Adrien Delorme 1a41eac70b Update vendored_plugins.go
5 years ago
sylviamoss 7a85b7328e vendor qemu plugin
5 years ago
sylviamoss 642ed07476 remote qemu plugin
5 years ago
Sylvia Moss 88f8feecfe
Extract vmware plugin (#10920)
5 years ago
sylviamoss b448c3182c fix TEMPATE to TEMPLATE in fmt cmd
5 years ago
Adrien Delorme 9230a06920
move googlecompute plugin to github.com/hashicorp/packer-plugin-googlecompute (#10890)
5 years ago
Sylvia Moss 16658a9f47
Extract virtualbox plugin (#10910)
5 years ago
Wilken Rivera ceb96d061a
Extract ansible plugins (#10912)
5 years ago
sylviamoss 41c66d6935 vendor vsphere plugin
5 years ago
sylviamoss 38fe79948b remove vsphere components and docs
5 years ago
Adrien Delorme 77a29fc2f8
Allow to have `dynamic` blocks in a `build` block + tests (#10825)
5 years ago
Adrien Delorme a9bec7945e
remove .mdx extensions in links (#10823)
5 years ago
Sylvia Moss 505cbd2591
Vendor amazon plugin (#10800)
5 years ago
Adrien Delorme 0e3fcb589b
Implicit required_plugin blocks (#10732)
5 years ago
Adrien Delorme 7732f7998c
Add http_content func to serve variables from HTTP @ preseed (#10801)
5 years ago
Megan Marsh 0993c976fa
hcl2_upgrade escaped quotes fix (#10794)
5 years ago
Megan Marsh a40a782408 remove escaped dir
5 years ago
Adrien Delorme e2e6bce4c4 Update hcl2_upgrade_test.go
5 years ago
Megan Marsh 502708b86a
Refactor hcl2_upgrade (#10787)
5 years ago
Megan Marsh 4242cf3151 fix tests
5 years ago
Megan Marsh 0ecc4b5e52 add annotation warning to isotime func usage
5 years ago
Megan Marsh 6986fb0e81 make upgrade set isotime func properly
5 years ago
Adrien Delorme fe21ff905d test that folders containing a - file won't hang forever
5 years ago
Adrien Delorme 832c0f2b2a actually run fmt tests and then remove debug statements
5 years ago
teddylear 22d373c279 Adding more debug logic
5 years ago
Adrien Delorme be7d7313c5 add tests for piping fmt
5 years ago
Adrien Delorme a115b428ac simplify fmt test case a little
5 years ago
Adrien Delorme 4e22147909 Merge remote-tracking branch 'origin/master' into pr/teddylear/10457
5 years ago
Wilken Rivera 3c282de6c3 Add maps for statically vendored components
5 years ago
Wilken Rivera edd4567096 Remove plugin registration generation step
5 years ago
Marc Falzon 125a2f1f76 Remove "exoscale-import" post-processor
5 years ago
Megan Marsh 71b815a5fd reword commits
5 years ago
Wilken Rivera 79481ed7ec Add vendored components map as opposed to removing code generation for command/plugin.go
5 years ago
Megan Marsh 1c3c1f17d9 stop generating plugins file to make it possible to vendor plugins
5 years ago
Megan Marsh a5b0e37d7e docker extraction POC
5 years ago
Sylvia Moss 610dde7f02
check for nil config map (#10730)
5 years ago
Megan Marsh 96b753f3b0
pin packer to golang 1.16 (#10702)
5 years ago
sylviamoss 5ccbd27b72 Improve upgrade error and transform all variables with template eng to locals
5 years ago
sylviamoss 20e8f666d9 make locals out of variables with template engines
5 years ago
sylviamoss a1a5cf0113 upgrade variables with other variables
5 years ago
sylviamoss 2016d6baec Fix panic on upgrading variables json file
5 years ago
Megan Marsh dd167925d7
add machine readable to the cli help func and docs (#10658)
5 years ago
Sylvia Moss 37d05c85ff
upgrade pause_before (#10654)
5 years ago
Megan Marsh 00e503388e
change template parsing error to include warning about file extensions (#10652)
5 years ago
Megan Marsh 1710590418
Merge pull request #10633 from hashicorp/azr_init_no_magic_host
5 years ago
Wilken Rivera 728c5a217d Add test case for non-github hostname
5 years ago
Sylvia Moss e0557f84e9
Add access config to generated amazon ami data source (#10634)
5 years ago
Adrien Delorme 8208f425c8 addrs: remove Plugin.ForDisplay func, the String one does the job
5 years ago
Megan Marsh cac6b04546
update help text for hcl2_upgrade (#10624)
5 years ago
Megan Marsh 80ed988ffe
Hcl2 upgrade fix (#10625)
5 years ago
Megan Marsh b20dea6aec
Merge pull request #10614 from hashicorp/azr_acc_test_old_single_component_plugins
5 years ago
sylviamoss e69410b633 fix lint
5 years ago
sylviamoss 855ba9775a add docs
5 years ago
sylviamoss 76e3d57cae add with-annotation flag to hcl2_upgrade
5 years ago
teddylear 0637601eda Fixing recursive formatting tests to work on all platforms
5 years ago
Adrien Delorme 7089e0854a rename setup func to avoid name conflict
5 years ago
Adrien Delorme 40c2b2a153 add manually-installed-single-component-plugin-old-api-fails
5 years ago
Adrien Delorme 3677069010 test: manually-installed-single-component-plugin-works
5 years ago
Adrien Delorme b321c64c1e Update init_test.go
5 years ago
Adrien Delorme ad0ce49cec fix tmpdir creation
5 years ago
Adrien Delorme 021044e963 put name first
5 years ago
Adrien Delorme ba8484ee6b tests: pre make dir in case nothing happens
5 years ago
Adrien Delorme 3052e3c5d5 tests
5 years ago
Sylvia Moss 774c5903f6
Add error-cleanup-provisioner to HCL2 (#10604)
5 years ago
teddylear d85286e228 Merging in master
5 years ago
Sylvia Moss d28e6fe009
write timestamp local only when necessary (#10602)
5 years ago
Adrien Delorme ffbb110167
Test running plugins with fake and fresh plugins (#10595)
5 years ago
Sylvia Moss f5006d0842
fix empty locals and source name with blank space (#10593)
5 years ago
Sylvia Moss d53488db68
Add aws_secretsmanager transformation to hcl2_upgrade (#10553)
5 years ago
teddylear d3754e3021 Updating recursive formatter tests to be cleaner and table driven
5 years ago
teddylear 40a97e29db Clean up recursive format tests to be more accurate
5 years ago
teddylear 93df53a275 Refactor recursive formatting test cases to be table driven
5 years ago
teddylear 6adf1f6659 Fixing recursive fmt tests syntax and adding test case when recursive
5 years ago
teddylear 261abe0cae Setting recursive fmt to false, updatting recursive fmt test to validate
5 years ago
teddylear ab4b3a8465 Adding recursive flag to formatter to format subdirectories
5 years ago
Adrien Delorme 692433721d
Add some acceptance testing for Packer init commands (#10566)
5 years ago
Sylvia Moss ef4afafde9
Fix force flag for hcl2 provisioners and post-processors (#10571)
5 years ago
Adrien Delorme 92ccd5fa1d
init: show successful installs in cyan (#10557)
5 years ago
Adrien Delorme ed091163be
HCL2 Parse packer.required_plugins block + packer init (#10304)
5 years ago
Sylvia Moss d1ada744e1
Aws Secrets Manager data sources (#10505)
5 years ago
Megan Marsh 93008045cd
Merge pull request #10500 from hashicorp/format_stdin
5 years ago
Sylvia Moss 3c7944624a
(3) Add amazon-ami data source (#10467)
5 years ago
Sylvia Moss 291121dd55
(2) Implement datasources (#10440)
5 years ago
Megan Marsh 4323b49130 enable Packer fmt to read from stdin
5 years ago
Sylvia Moss e44cb9d7e5
Add Amazon AMI data source to hcl_upgrade command (#10491)
5 years ago
Megan Marsh 4cb6e07900
Hcl beta tag (#10493)
5 years ago
Megan Marsh 54a75421ea regenerate
5 years ago
Megan Marsh 1cb9aea752 change markdown references to new pathing
5 years ago
Adrien Delorme 52d2d7fe5f
Copy `MapOf...` plugin types back into Packer core (#10466)
5 years ago
Tristan Watson 17c806fbf5
Removing obsolete packer HCL warnings from CLI for validate and command (#10461)
5 years ago
Megan Marsh 88b7b0e14a remove sdk
5 years ago
Wilken Rivera 4e58987026
command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377)
5 years ago
Megan Marsh 39ab646236
move plugin and rpc code into sdk; other minor tweaks (#10359)
5 years ago
Megan Marsh 5576bb5caa move packer config constants next to the packer config
5 years ago
Megan Marsh b69d69095e move postprocessor to sdk, fix generation code
5 years ago
Megan Marsh be5763ec41 move provisioner interface into sdk
5 years ago
Megan Marsh ada91b24e9 extract builder interface to sdk
5 years ago
Megan Marsh d5971ca25e fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK
5 years ago
Megan Marsh 56a45b04ab Move hook and communicator definitions to packer-plugin-sdk
5 years ago
Megan Marsh 14bdb9516c move Artifact and artifact mock to the sdk
5 years ago
Megan Marsh 001886670d move Ui definition into the packer plugin sdk.
5 years ago
Adrien Delorme 73b7499811
HCL2: version block: test validation & document version/availability (#10298)
5 years ago
Megan Marsh 6a1a22151c move the various flag packages from helper to command, since command is the only package that uses them.
5 years ago
Megan Marsh efe11da4a3
Merge pull request #10254 from hashicorp/plugin-sdk-2
5 years ago
Megan Marsh 3e54e9ea80
Merge pull request #10235 from hashicorp/refactor_version_code
5 years ago
Megan Marsh 6402362018 create packer-plugin-sdk directory and begin moving the relevant folders into it.
5 years ago
Adrien Delorme f44e912072
Update hcl2upgrade command to update env calls + tests (#10244)
5 years ago
Wilken Rivera acabc1c1aa
Add packer fmt command (#10225)
5 years ago
Adrien Delorme deba1484ff
HCL2: allow calling env as input var default value (#10240)
5 years ago
Adrien Delorme 17ec88246f
hcl2_upgrade update (#10221)
5 years ago
Megan Marsh bc85854a53 refactor packer version out of hcltemplate code.
5 years ago
Adrien Delorme 6dd06fad14 add command/ tests
5 years ago
Adrien Delorme 4bc16455b4
HCL2: add a packer block with a required_version input setting (#10149)
5 years ago
Megan Marsh fc619dc977
Merge pull request #9626 from featheredtoast/add-proxmox-vm-clone
5 years ago
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114)
5 years ago
Megan Marsh 2cdc052d7c
Merge pull request #10097 from hashicorp/more_hcl_docs
5 years ago
Megan Marsh 00cc425b84 docs tweaks
5 years ago
Peter Willis f1b57b1e66
Fix typos
5 years ago
Peter Willis a81811663a
Fix typos
5 years ago
Jeff Wong 0f12414126
Merge branch 'master' into add-proxmox-vm-clone
5 years ago
James Cradock 153d4111fa
Fix typo in build argument description (#10066)
5 years ago
Jeff Wong a140c13943
[proxmox] add proxmox builder alias
5 years ago
Adrien Delorme 3e0633fc20 scripts/generate-plugins.go: ignore "common" packages
5 years ago
Adrien Delorme b2be255057 Merge remote-tracking branch 'origin/master' into pr/featheredtoast/9626-1
5 years ago
Adrien Delorme fcf16315a3 add tests
5 years ago
Adrien Delorme 3d7ab9ea43 add an hcl2-json test
6 years ago
Calle Pettersson 905869308d Split proxmox builder into a common part and iso/clone builders
6 years ago
Adrien Delorme efd69aea2a
console: allow to use console when there are untyped vars (#9864)
6 years ago
Adrien Delorme a70164f489
HCL2: when the type of a variable is not known evaluate setting as a litteral. (#9863)
6 years ago
Adrien Delorme a25f057984 add tests for unknown values
6 years ago
Adrien Delorme 161879b98a test unknown variables and locals
6 years ago
Adrien Delorme 652878059c inspect command: ignore init errors as some value can be unset
6 years ago
Adrien Delorme 91c5a4613c HCL2 inspect remove debug values
6 years ago
Wilken Rivera 67cd123d1c
Merge pull request #9834 from hashicorp/azr-fix-hcl2_upgrade_random_generate
6 years ago
Wilken Rivera 0e2a3e1058 command/hcl2_upgrade: Update description text for command
6 years ago
Adrien Delorme 0f00709fb6 hcl2_upgrade: fix a case where the generated type is wrong
6 years ago
Adrien Delorme 5ba134ac5b
JSON to HCL2 (minimal best-effort) transpiler (#9659)
6 years ago
sylviamoss 39a8dee4ea add tests and update override example
6 years ago
Chris Gilmer 6e918c4bd3
Update test for builder output
6 years ago
Chris Gilmer 04f952a2f4
Pretty print build durations
6 years ago
Adrien Delorme c7b35dd6bc
HCL2: add post-processors block to run multiple post-processor after a build (#9638)
6 years ago
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
6 years ago
Adrien Delorme 125178d943
core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622)
6 years ago
Gennady Lipenkov 553d203e68 Add yandex-import post-processor
6 years ago
Adrien Delorme b0238e6f4a Update build_windows_test.go
6 years ago
Adrien Delorme d84d956e36 add language coment !
6 years ago
Adrien Delorme a15ad19411 test builds can be 'excepted'
6 years ago
Adrien Delorme c1c8b8d22a complete -> recipes
6 years ago
Adrien Delorme 10e5d952ac unquote 'cooking...'
6 years ago
Adrien Delorme 0475b0529d tests: fix line endings in windows
6 years ago
Adrien Delorme 0deaa5d2a5 add a complete tests for builder variables + only/except
6 years ago
Adrien Delorme 7969b690de Revert "Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)"
6 years ago
Adrien Delorme 3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks (#9490)
6 years ago
Sylvia Moss 99046c9178
Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)
6 years ago
Adrien Delorme 6f4d79799b add thorough test
6 years ago
Adrien Delorme dabcc866e5 add another inspect test
6 years ago
Adrien Delorme f98576b19e add a basic test for the inspect command
6 years ago
Adrien Delorme 51d02f8c2d hcl2: inspect command
6 years ago
Adrien Delorme fb337f8867
hcl work on only/except (#9454)
6 years ago
Megan Marsh 42e98f15ae make sure the no-op progress bar gets used for machine readable uis
6 years ago
Moss 4f26534072 add on-error flag option to run cleanup provisioner
6 years ago
Moss daaeccd8b0 Skip consecutives post-processors
6 years ago
Moss bfb9df0039 fix except flag for JSON and HCL2
6 years ago
Wilken Rivera f672f5bd9b command/validate: Add support for HCL2 configuration files
6 years ago
Adrien Delorme bac9c74447
packer console for HCL2 (#9359)
6 years ago
Megan Marsh 3dc4ba2d68
Json vs HCL2 parity refactor (#9301)
6 years ago
Megan Marsh ee5635722b enable force, debug, and on-error for hcl2 builds
6 years ago
Megan Marsh 533fbc1381
Merge pull request #9139 from hashicorp/hcl2_commands_refactor
6 years ago
Adrien Delorme 2f26168adc ConsoleCommand.ParseArgs: don't fail if no buildfile was passed
6 years ago
Adrien Delorme 52b2151b21 go generate ./packer
6 years ago
Adrien Delorme 466358a13e Delete command.go
6 years ago
Adrien Delorme 7ca0a80a86 remove Ui from command.MetaArgs
6 years ago
Adrien Delorme 77297e49e9 Update cli.go
6 years ago
Adrien Delorme 49c2a8cb17 update fix command with new synthax
6 years ago
Adrien Delorme 14f18f4236 dont catch signals in console, as it seems unecessary for now
6 years ago
Adrien Delorme 22a36ef97a Move vars from Meta to cla args; this forces us to use it in GetConfigFromJSON which in turn forces us into updating console and validate
6 years ago
Adrien Delorme 534e98c4ef pass Meta command line arguments around
6 years ago
Adrien Delorme b35ec44d06 Update build.go
6 years ago
Adrien Delorme e6aac8cd6f Update build_test.go
6 years ago
Adrien Delorme efcc6af06c fix tests
6 years ago
Adrien Delorme a93a45e4d3 more fixes to refactor
6 years ago
Adrien Delorme 42a05e1e80 more refactoring
6 years ago
Adrien Delorme 2ef758763f Update build_cancellation_test.go
6 years ago
Adrien Delorme 2f63e4e79d refactor term interrupts & have RunContext take a conf struct now
6 years ago
Adrien Delorme 532a69c968 Update command.go
6 years ago
Adrien Delorme 5290beb23e Update cli.go
6 years ago
Adrien Delorme a5ab87ca44 add scaffolding for the new packer command layout
6 years ago
Megan Marsh 6a682aca2e
Merge pull request #9124 from GennadySpb/yandex-export-post-processor
6 years ago
nqb be08eddd8d
remove useless comment
6 years ago
Adrien Delorme 4047113746 Update build.go
6 years ago
Adrien Delorme 2c556ed8c0 remove clarified comment
6 years ago
Adrien Delorme c71a792186 simplify/refactor core for build & validate
6 years ago
Adrien Delorme 7aaee62970 command/build: don't reset error code in case an error hapened
6 years ago
Adrien Delorme 5c2b8da63b get builds from PackerConfig instead of parser
6 years ago
Tom Dyas c0a6623ea2
teach HCL mode builds to honor -only and -except options (#8947)
6 years ago
Gennady Lipenkov d5a6781fb7 Add new 'yandex-export' post-processor
6 years ago
Megan Marsh 217dcbb97f golang 1.14 doesn't like calling NewFile on existing files. Port solution over from Terraform
6 years ago
Adrien Delorme 2af40c762b
HCL2: pass on builder type and name (#8956)
6 years ago
Jeff Escalante 9165be87da
packer.io prefix removal, html extension remove for in-code errors
6 years ago
Vaijanath Angadihiremath fd21b669db Fixing the linting errors now required for merging
6 years ago
Vaijanath Angadihiremath c815a5df67 Fixing the Make Ci errors
6 years ago
Vaijanath Angadihiremath 645cdf1a59 Updating the modules to include update to autorest 12.4
6 years ago
Megan Marsh f5c98a7601
make sure cli vars supercede var files (#8964)
6 years ago
Adrien Delorme d068430abf
make sure locals are evaluated only once variables are + test this (#8918)
6 years ago
Adrien Delorme ad8dafa3bd
HCL: add tests and fixes around var-file and var args (#8914)
6 years ago
Adrien Delorme 88297c796d Merge branch 'master' into hcl2_singular_blocks
6 years ago
Adrien Delorme 94a1f0bcb6 go fmt
6 years ago
Adrien Delorme 0a46bb9525 more precise docs
6 years ago
Adrien Delorme b5e8750f5f Change key/value to name/value to remain consistent with Terraform
6 years ago
Adrien Delorme c8300b620a allow to use hcl files as var files in HCL mode
6 years ago
Adrien Delorme d2964d59e9 document that the `-var-file` option still expects JSON files for now
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Sylvia Moss 23fa3107a3
Render variables one time on prepare method (#8727)
6 years ago
Adrien Delorme 193dad46e6
Hcl2 input variables, local variables and functions (#8588)
6 years ago
Megan Marsh 073eda76aa remove extraneous files from when vsphere builder was a plugin, and move README into packer website as separated docs for vsphere-clone and vsphere-iso. Move option descriptions into struct code, and generate documentation directly from those structs as we do inside of the other builders
6 years ago
Megan Marsh 5bacd37014 fix pps
6 years ago
Megan Marsh dca2c03cdb
Merge pull request #7866 from hashicorp/sharing_info
6 years ago
nywilken 3d56f8ac80 command/build: Fix URL to HCL2 syntax guide
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
Moss a0329ef196 Simplify testing template
6 years ago
Moss 7466c4fdca Return exit code 1 when builder type is not found
6 years ago
mingsheng.su 2c513fce64 update ucloud packer
6 years ago
mingsheng.su 61f9d3a9fe add ucloud import
6 years ago
Paul Meyer 7297d74c98 Add azure-chroot builder plugin
6 years ago
Megan Marsh 59efa0faee rename option to error-cleanup-privisoner, which I think is clearer
7 years ago
Megan Marsh 0683bc409b add test for error-cleanup provisioner, and fix tests by fixing null builder to use an actual none communicator instead of skipping communicator generation altogether
7 years ago
Megan Marsh 6688f436dd
Merge pull request #7960 from guidodobboletta/master
7 years ago
xiaohan.liang f4fc9dd09a Rewrite all files, remove sensitive information
7 years ago
Guido Dobboletta e79d62d006 Fix text
7 years ago
Thomas Meckel d3202497ae First working version of virtualbox/vm builder
7 years ago
Thomas Meckel 2a531f8ad6 Merged changes from local branch
7 years ago
Brendan Devenney 2b16b5cae4
Move fixer test to fix package
7 years ago
Brendan Devenney 6520814a6c
Ensure help output is consistently formatted
7 years ago
Brendan Devenney 75d8d7fce5
Update and futureproof fix command usage
7 years ago
Brendan Devenney 91b7d8c572
Add test to ensure all fixers are enabled
7 years ago
Brendan Devenney 9f0bc29db5
Test that Fixers and FixerOrder are equal length
7 years ago
Marin Salinas 80dadaf3f1 feature: add bsuvolume builder and acceptance test
7 years ago
Marin Salinas 0c47ee55e6 feature: add chroot builder structure
7 years ago
Marin Salinas c4e69d3169 wip: add bsu plugin acc testing
7 years ago
Marin Salinas 1281f28f6d add prevalidate step
7 years ago
Marc Falzon 00c2df24df Add Exoscale Import post-processor
7 years ago
mingsheng.su 6109ad79a3
Merge branch 'master' into feature/ucloud_builder
7 years ago
Adrien Delorme 5efab58ed8 allow to have timestamped colorless ui messages
7 years ago
mingsheng.su d1b9ad90c8 Merge remote-tracking branch 'origin' into feature/ucloud_builder
7 years ago
mingsheng.su c8bab9b382 add ucloud packer
7 years ago
Megan Marsh f7bf80724c document what a REPL is
7 years ago
Megan Marsh 53a5e90d78
Update command/console.go
7 years ago