Commit Graph

312 Commits (ea2fdc25fa2701fae4b60259ccb7dac34afc5a13)

Author SHA1 Message Date
Adrien Delorme 48199c5aa8 add basic test to see if generated files are parseable
6 years ago
Adrien Delorme ca23dab943 set correct type for PEM block
6 years ago
Adrien Delorme 750102901c add cmd/ssh-keygen/main.go to try this on real servers
6 years ago
Adrien Delorme 0cf7af4247 add sshkey.Generate function
6 years ago
Ricardo Rosales 809f38be3a
[azure-chroot] Updating parameter `exlude_from_latest` to `exclude_from_latest` (#10034)
6 years ago
Marco Molteni 4d7e42220b
scaleway: add pre validate step (check image and snapshot names) (#9840)
6 years ago
Megan Marsh 94a9beaac6 fix up documentation for virtualbox key pair ssh options
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
Megan Marsh 2dcf950441 change pause to run connect again afterwards
6 years ago
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
6 years ago
Megan Marsh a687d6fe12
ci/tech-debt: Fix vmware acceptance tests (#9636)
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 fd6be7f279 better/simpler `pause_before_connecting` example
6 years ago
Megan Marsh 530f5e3f63 more additions to partials
6 years ago
Roger Hu 31a7a1d637 adding basic support for OpenSSH CertificateFile support
6 years ago
Sylvia Moss 9c1409dbba
Add content_library_destination to import VM template to a Content Library (#9551)
6 years ago
Moss 8ea64c5b35 undocument ssh_keypair_name and ssh_agent_auth
6 years ago
Moss 41edd09d3c undocument temporary_key_pair_name and ssh_private_key_file
6 years ago
Megan Marsh cacdb0ca02 add tests
6 years ago
Megan Marsh 4f77bb0c4a add new ssh_ciphers option
6 years ago
Megan Marsh a07563c64f fix up typos in comments and regenerate docs.
6 years ago
Megan Marsh 4178625afb re-add winrm_no_proxy option. Winrm code needs to be modified in order to read no_proxy env var when client is created rather than when net/http library is instantiated.
6 years ago
Wilken Rivera f672f5bd9b command/validate: Add support for HCL2 configuration files
6 years ago
Sylvia Moss ce45a1990a
Refactor communicator config for Qemu and add SkipNatMapping option (#9307)
6 years ago
Megan Marsh 4698f90e65 update deprecated options
6 years ago
Megan Marsh a94e147865 fix go fmt
6 years ago
Megan Marsh b28059c0a5 add generator to create a list of all the deprecated options that the fixers fix
6 years ago
Megan Marsh 15b14d4879 add deprecation check to config helper
6 years ago
Adrien Delorme 40947c2bf6
HCL2: generate hcl tags with go-cty tags too (#9306)
6 years ago
Megan Marsh 3dc4ba2d68
Json vs HCL2 parity refactor (#9301)
6 years ago
Sylvia Moss 1c30a71d09
Replace file shared state by statebag (#9238)
6 years ago
Megan Marsh 7e0cfd8b77 add undocumented tag to struct-markdown generator so that we can leave internal-use-only fields out of docs
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
Jeff Escalante 2999934326
fix generation script, bugfixes in source comments, update website paths in primary codebase
6 years ago
Jeff Escalante 4afd107eeb
patch source files for extensions changes
6 years ago
Wilken Rivera 360f81b030 tests/provisioners: Add TestProvsionerPreCheck function
6 years ago
Sylvia Moss 665330de92
Write generic Builder-Provisioner acceptance test logic (#8963)
6 years ago
Adrien Delorme 88297c796d Merge branch 'master' into hcl2_singular_blocks
6 years ago
Adrien Delorme 834f44190f go generate
6 years ago
Adrien Delorme 87d6b2433f make generate
6 years ago
Megan Marsh fc35f02004
Merge pull request #8890 from hashicorp/fix_8880
6 years ago
Megan Marsh e94ff70199
Merge pull request #8883 from hashicorp/fix_8835
6 years ago
Megan Marsh 6477d8a0c8
Merge pull request #8882 from hashicorp/fix-var-file-hcl
6 years ago
Megan Marsh 6008f911fd
Merge pull request #8847 from takaishi/support-keyboard-interactive
6 years ago
Megan Marsh bcb7b8751c fix googlecompute password interpolation
6 years ago
Moss 5a8c628880 Add acc test validation to avoid running with unit tests
6 years ago
Moss 3f49b7c66e Fix linter
6 years ago
Moss 2ca6804827 Move shell prov acc test to the same folder
6 years ago
Adrien Delorme 60a3105a45 make ssh docs less AWS specific
6 years ago
r_takaishi 70e3f60539 write unit test
6 years ago
r_takaishi f50ff1d270 make generate
6 years ago
Adrien Delorme 7ec39ebb4e TestStringSlice_Set: check error even if none is returned
6 years ago
Adrien Delorme 6b48feb817 kvflag: add TestStringSlice_Set
6 years ago
Adrien Delorme c8300b620a allow to use hcl files as var files in HCL mode
6 years ago
Wilken Rivera 7b705545d9
docs: Various doc clean-ups to fix code block formatting and syntax highlighting (#8868)
6 years ago
r_takaishi 34bb0429d0 keyboard-interactive used when ssh_bastion_host is true.
6 years ago
Sylvia Moss 76f13deaf4
Make template variables SSHPublicKey and SSHPrivateKey as strings (#8829)
6 years ago
Lars Lehtonen 74a94d8547
helper/builder/testing: prune unused functions (#8852)
6 years ago
r_takaishi e2df4a80f8 support keyboard interactive auth
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Megan Marsh d252a24b82 allow user to set winrm_host override like we do ssh_host override
6 years ago
Sylvia Moss 0677b02e18
Share SourceImageName with provisioners and manifest post-processor (#8603)
6 years ago
Megan Marsh 82f03fca7c fix to work with hcl2; update tests
6 years ago
Megan Marsh 4059ed75f5 update docs to mention ssh auth sock env var (#8523)
6 years ago
Megan Marsh cd7abf1f9e clean up a few final issues with info sharing
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 82367a88f8 reorganize placeholder data call to live with provisioner implementation; force users to use the generated function, therefore forcing validation, for all variables except winrmpassword, by doing a simple string check against the placeholder data.
6 years ago
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
6 years ago
nywilken a61fe833ef helper/communicator/step_connect_ssh: Update proxy connection settings to use `SSHProxyUsername` and `SSHProxyPassword`
7 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
7 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Chris Roberts 8bb7d8dc16 Prevent busy loop while waiting for WinRM connection
7 years ago
Megan Marsh 85de1d0637 make friendlier message warning user that their creds may be wrong
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Daniel Kimsey 3b64620234 SSH tunneling support
7 years ago
Adrien Delorme 5517d41468 make sure all documentation fields are there
7 years ago
Adrien Delorme db880ab50a add decoding tests for trilean
7 years ago
Megan Marsh 3c3f7f26ce implement custom data type "trilean" (tri-state-boolean) to track booleans which have a "null" or "unset" state. Previously we used *bool for these template options, but it turns out that those won't work because "unset" will evaluate to "false" if a user is using template variables to set the option that maps to a *bool.
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Stephen Fox 9592211bcf Honor value of 'Comment' field in 'ssh.KeyPairFromPrivateKey()'.
7 years ago
Vladislav Rassokhin 19e8f150a3 Use context for timeouts, interruption in ssh and winrm communicators
7 years ago
Megan Marsh ba66d5d857
Merge pull request #7831 from hashicorp/fix_ssh_interface
7 years ago
Megan Marsh 242f5b1c9f typos
7 years ago
Megan Marsh 8718e98efe add common commHost function
7 years ago
Megan Marsh 6ad975f296 Revert "move SSHInterface/SSHIPVersion fields to communitator.Config struct"
7 years ago
Adrien Delorme 6e3dc1aa9a Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme d16fd8a2b1 allow to build on solaris
7 years ago
Megan Marsh df916e805e borrow wrappedreadline workarounds from terraform and implement a similar check for piped commands; this makes the cli experience much cleaner
7 years ago
Adrien Delorme 4bf6a56d71 split communitacor.SSH & communitacor.WinRM to facilitate documentation
7 years ago
Adrien Delorme e96409954a add execution policy type and use it to default the powershell cmd
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
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 82c4b76639 [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method
7 years ago
Adrien Delorme cccbd7f316 contextualize basic runner
7 years ago
Adrien Delorme a4bf94dd3c change Builder to be passed a context for cancellation
7 years ago