Commit Graph

336 Commits (plugin_load_spec_docs)

Author SHA1 Message Date
Megan Marsh a6f907c688 tests
5 years ago
Megan Marsh f12c89bd84 add legacy_isotime function to hcl funcs
5 years ago
Megan Marsh 60c961c021
Merge pull request #10457 from teddylear/feature/recursivefmt-2
5 years ago
Adrien Delorme f32b67c3bb
Simplify error message when config file can't be "stat'd" (#10763)
5 years ago
Adrien Delorme 160d932cce remove weir "Cannot tell wether " + path + " is a directory" error
5 years ago
Adrien Delorme e0fe579837 un-remove tests
5 years ago
Adrien Delorme 8ee8420408 simplify return
5 years ago
Adrien Delorme 25ee6a19a6 flatten if a little
5 years ago
Adrien Delorme a6321ac137 remove debug line
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 7d30a5d79d remove duplicate tests
5 years ago
Adrien Delorme 4e22147909 Merge remote-tracking branch 'origin/master' into pr/teddylear/10457
5 years ago
Adrien Delorme 8208f425c8 addrs: remove Plugin.ForDisplay func, the String one does the job
5 years ago
Adrien Delorme 429262030f fix paths for windows !
5 years ago
Adrien Delorme 4487152d1e cosmetic commit
5 years ago
Adrien Delorme 72e4dc4cb5 update docs to remove 'magic' required_plugin block usages
5 years ago
Adrien Delorme 7809242f41 quote template example
5 years ago
Adrien Delorme 4cb94a67b0 Update types.variables.go
5 years ago
Adrien Delorme 029729225d tests and fixes
5 years ago
Adrien Delorme aeecfcd422 show version constrain error in case it's handy
5 years ago
Adrien Delorme 9f545c28fe required_plugins: prevent using `plugin = "version"`, and show an example
5 years ago
Adrien Delorme fe12d53e77 addr: remove support for defaulting plugin namespace and host
5 years ago
teddylear 0637601eda Fixing recursive formatting tests to work on all platforms
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 1e889078fd
add regex and regexall functions (#10601)
5 years ago
Adrien Delorme ffbb110167
Test running plugins with fake and fresh plugins (#10595)
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 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
Megan Marsh ca123721a6 plugin loading failure should be considered an error so build will not try to run
5 years ago
Sylvia Moss ef4afafde9
Fix force flag for hcl2 provisioners and post-processors (#10571)
5 years ago
Sylvia Moss 3ddb17ad86
Don't allow data sources to be used inside data sources (#10559)
5 years ago
Wilken Rivera 8ccd164f25
Update diagnostic detail to display list of PostProcessors (#10564)
5 years ago
Adrien Delorme ed091163be
HCL2 Parse packer.required_plugins block + packer init (#10304)
5 years ago
Megan Marsh a5a1344948
Merge pull request #10516 from hashicorp/fix_uint8_hcl
5 years ago
Megan Marsh 90fb09e52a linting
5 years ago
Megan Marsh 21df997061 Handle case where list is empty
5 years ago
Megan Marsh fbbda0f9d9
Sensitive locals (#10509)
5 years ago
Megan Marsh e3b14d888b create util function in hcl2 template that will load config values into hcl values without panicing if it finds something it cannot handle
5 years ago
Megan Marsh c8d5d56f61 fix
5 years ago
Megan Marsh a8c8d247bb fix uint8
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
Megan Marsh 2b0996daa6 dont print filename if its reading from stdin
5 years ago
Sylvia Moss 291121dd55
(2) Implement datasources (#10440)
5 years ago
Megan Marsh 40df74e95a linting
5 years ago
Megan Marsh 4323b49130 enable Packer fmt to read from stdin
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
Megan Marsh 88b7b0e14a remove sdk
6 years ago
Megan Marsh 5f34bbd56e add extra line before package declaration so this line does not become the synopsis of a package for godoc
6 years ago
Wilken Rivera 4e58987026
command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377)
6 years ago
Donald Guy 889e42443a
Fix 2nd binding of string reverse for list reverse (#10380)
6 years ago
Megan Marsh 39ab646236
move plugin and rpc code into sdk; other minor tweaks (#10359)
6 years ago
Megan Marsh 5576bb5caa move packer config constants next to the packer config
6 years ago
Megan Marsh b69d69095e move postprocessor to sdk, fix generation code
6 years ago
Megan Marsh be5763ec41 move provisioner interface into sdk
6 years ago
Megan Marsh ada91b24e9 extract builder interface to sdk
6 years ago
Megan Marsh 56a45b04ab Move hook and communicator definitions to packer-plugin-sdk
6 years ago
Megan Marsh a6fdeca099 move logsecretfilter into packer sdk
6 years ago
Megan Marsh 14bdb9516c move Artifact and artifact mock to the sdk
6 years ago
Megan Marsh 001886670d move Ui definition into the packer plugin sdk.
6 years ago
Megan Marsh ea1ac530b0 move hcl2template kv types into the config/custom_types with trilean definitions
6 years ago
Megan Marsh 9e47696dff move helper/config to bundle with the other template definitions
6 years ago
Megan Marsh 7d658149ea update tests and website and generated partials to reflect new package format
6 years ago
Megan Marsh 3e54e9ea80
Merge pull request #10235 from hashicorp/refactor_version_code
6 years ago
Wilken Rivera acabc1c1aa
Add packer fmt command (#10225)
6 years ago
Adrien Delorme deba1484ff
HCL2: allow calling env as input var default value (#10240)
6 years ago
Megan Marsh bc85854a53 refactor packer version out of hcltemplate code.
6 years ago
Adrien Delorme fd873b8811 Referenceable: explain a bit more of the whys
6 years ago
Adrien Delorme 10eb32d29e require less English
6 years ago
Adrien Delorme 2987d25335 simplify tests
6 years ago
Adrien Delorme 20b7fd9687 add hcl2template/addrs/doc.go
6 years ago
Adrien Delorme 971254928a various fixes
6 years ago
Adrien Delorme 88175873e5 fix tests to actually check cty values & types
6 years ago
Adrien Delorme 6911495fc4 add VariableAssignment struct that help describe an input var assignment
6 years ago
Adrien Delorme 8de2f40a07 add tests for length
6 years ago
Adrien Delorme b892414e84 add failing test case
6 years ago
Adrien Delorme 9932fd1217 add Variable.validateValue func
6 years ago
Adrien Delorme 4d386dd806 add length function that can work with more types
6 years ago
Adrien Delorme 4e08ea6a92 add a test
6 years ago
Adrien Delorme 91d7332471 add basic code for variable validation parsing
6 years ago
Adrien Delorme 4bc16455b4
HCL2: add a packer block with a required_version input setting (#10149)
6 years ago
Adrien Delorme 6d4fae0f2d
Add HCL2 aws_secretsmanager function (#10124)
6 years ago
Megan Marsh cc7dbf6092
Add consul_key function to integrate concul with hcl2 tempaltes. (#10119)
6 years ago
Megan Marsh a8ee23a9f9
Merge pull request #10117 from hashicorp/packer_version_func_hcl
6 years ago
Megan Marsh 09c6d2880f implement packer_version variable in hcl
6 years ago
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114)
6 years ago
Adrien Delorme 4cb218749b remove unecessary check
6 years ago
Adrien Delorme ebb1cb406c ignore walk error
6 years ago
Adrien Delorme bb22cfcf34 HCL2: pass sensitive variables to packer.LogSecretFilter
6 years ago
Adrien Delorme 180dc4a54e add test
6 years ago
Adrien Delorme f3e65b5eb1 use "github.com/hashicorp/go-cty-funcs/collection".CoalesceFunc
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 bdf198594e hcl2 inspect: sort variables to have a consistent output
6 years ago
Adrien Delorme eb4069a1b7 hcl variables: return an unknown value in when no default is set
6 years ago
Adrien Delorme 91c5a4613c HCL2 inspect remove debug values
6 years ago
Adrien Delorme 5ba134ac5b
JSON to HCL2 (minimal best-effort) transpiler (#9659)
6 years ago
Megan Marsh d486459a00
Merge pull request #9764 from hashicorp/hcl2_provisioner_override
6 years ago
sylviamoss 62c3743890 implemet override provisioner's option for hcl2
6 years ago
jsmcnair 78c280b1b7 Use common funcs / fix panic / clarify docs
6 years ago
jsmcnair 33e3f62ff7 Add vault function for HCL2 and document
6 years ago
Sylvia Moss 9181a435aa
Make max_retries a string to allow variable interpolation (#9673)
6 years ago
Megan Marsh 2bd2954412 fix cty bool passing for provisioners, too
6 years ago
Megan Marsh 713e7a2683 fix docker-import postprocessor.
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
Adrien Delorme f3fa8cd617 post-processor/provisioner: handle uint64 buildvars
6 years ago
Sylvia Moss 9c1409dbba
Add content_library_destination to import VM template to a Content Library (#9551)
6 years ago
Adrien Delorme 03d29386dd
fix error message typo (#9541)
6 years ago
Adrien Delorme 34ff3d0c8f hcl2 GetBuilds: use packer.BuilderDataCommonKeys to avoid forcing all builders to return exactly what they will return
6 years ago
Adrien Delorme 0293f69fa1 default build values to be unknown
6 years ago
Adrien Delorme eaf63e3bb5 pass source name from local source name too
6 years ago
Adrien Delorme cf514d31f2 avoid passing generatedVars down during first prepare
6 years ago
Adrien Delorme 0ed10f921f add test
6 years ago
Adrien Delorme 90610dcf04 docs
6 years ago
Adrien Delorme 39261f3671 add hcl2 post processor type that reprepares itself
6 years ago
Adrien Delorme db6c3adbba add hcl2 provisioner type that reprepares itself
6 years ago
Adrien Delorme 284d46a1e0 WIP
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 c2975140cf
HCL2: allow to use keep_input_artifact in post processors (#9477)
6 years ago
Adrien Delorme 6f4d79799b add thorough test
6 years ago
Adrien Delorme 51d02f8c2d hcl2: inspect command
6 years ago
Adrien Delorme a96a8f22b9 HCL2: allow to describe a build block
6 years ago
Adrien Delorme fb337f8867
hcl work on only/except (#9454)
6 years ago
Moss daaeccd8b0 Skip consecutives post-processors
6 years ago
Moss 6599e7ab05 apply goimports
6 years ago
Moss bfb9df0039 fix except flag for JSON and HCL2
6 years ago
Adrien Delorme cf6eca7e1c Revert "Add pwd function to HCL"
6 years ago
Adrien Delorme 44dfa221de Revert "Add template_dir function to HCL"
6 years ago
Megan Marsh d73f83a9d9
Merge pull request #9367 from jeremiahsnapp/add-template_dir-and-pwd-functions
6 years ago
Wilken Rivera f672f5bd9b command/validate: Add support for HCL2 configuration files
6 years ago
Jeremiah Snapp 3b9a0427cd Add template_dir function to HCL
6 years ago
Jeremiah Snapp 2800043149 Add pwd function to HCL
6 years ago
Adrien Delorme bac9c74447
packer console for HCL2 (#9359)
6 years ago
Jeremiah Snapp 0d7c5dc670
Enable only/except for provisioners and post-processors (#9357)
6 years ago
Adrien Delorme f09fd790b7
Merge branch 'master' into master
6 years ago
Adrien Delorme 1147ef9a36
Merge pull request #9291 from hashicorp/f-singular-build-source-blocks
6 years ago
Adrien Delorme 6a406ffb1d
Update hcl2template/types.source.go
6 years ago
Adrien Delorme 225081c3a6
Update hcl2template/types.source.go
6 years ago
Adrien Delorme b4aa71aef2 Merge remote-tracking branch 'origin/master' into pr/AdrienneCohea/9245
6 years ago
Adrien Delorme 059a782b0e remove debug log
6 years ago