Commit Graph

312 Commits (dev_version_changes)

Author SHA1 Message Date
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)
7 years ago
Megan Marsh cd7abf1f9e clean up a few final issues with info sharing
7 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
7 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
7 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.
7 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.
7 years ago
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
7 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
Megan Marsh 8f3313d81e Create new docker communicator for windows containers
7 years ago
Adrien Delorme 7737458d17 fix log output
7 years ago
Adrien Delorme 5a6dffde9a use port as ints
7 years ago
Adrien Delorme 025fc87278 StepConnectSSH: show connection address in debug output
7 years ago
Adrien Delorme c214f6735b make everything a uint
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Megan Marsh 3dc1dafe58
Merge pull request #7287 from stephen-fox/ephemeral-ssh-key-pair-issue-7225
7 years ago
Stephen Fox d51e300fcd Clarified comment for 'defaultRsaBits' constant.
7 years ago
Stephen Fox 7e1cbc6d89 Rename references to key pair name to comment.
7 years ago
Stephen Fox 094c87e395 Remove 'SSHPublicKeyUrlEncoded', use 'urlquery' instead.
7 years ago
Stephen Fox 856810e82e Coalesce private key type switch cases per review feedback.
7 years ago
Stephen Fox 672b22bd13 Move 'CreateKeyPairConfig' closer to callers.
7 years ago
Stephen Fox 302828905d Move 'FromPrivateKeyConfig' closer to caller.
7 years ago
Stephen Fox ed06656613 Update 'authorizedKeysLine' doc per review feedback.
7 years ago
Stephen Fox 415ef26768 Removed TODO about key pair description per review feedback.
7 years ago
Megan Marsh 9db844a807 move pause to after connection can be established.
7 years ago
Stephen Fox 2ef6b9247d Initial take on code review feedback from @azr.
7 years ago
Megan Marsh 31c8acc5bc add a configurable pause before step_connect to work around bootstrap race conditions
7 years ago
Stephen Fox 2ab2ea6ef1 Fixed interface documentation typo.
7 years ago
Stephen Fox ed1d224b97 Remove defaultKeyPair type. Be more specific in errors.
7 years ago
chris marget 97268b3041 .
7 years ago
chris marget 3515afa994 better variable names in test function
7 years ago
chris marget 75bd3c6951 constants don't need to be [P]ublic
7 years ago
chris marget b476e54db1 whitespace
7 years ago
chris marget be01ca70f4 on error return empty defaultKeyPair{} rather than nil
7 years ago
chris marget 484aa4768f Remove unused keyheader data type
7 years ago
chris marget 13cc73d600 keypair parsing and testing
7 years ago
Stephen Fox 72b7d63a6a Restructured the SSH key pair's description.
7 years ago
Stephen Fox 4b649f7ce4 Use individual key pair implementations.
7 years ago
Stephen Fox d7510ecdf7 Tweaked 'PublicKeyAuthorizedKeysLine()' comment.
7 years ago
Stephen Fox 58c692a587 Get bits from private key rather than user input.
7 years ago
Stephen Fox f3128143fa Simplified building of authorized_keys public key.
7 years ago
Stephen Fox f2c11b55be Renamed authorized_keys public key function.
7 years ago
Stephen Fox d465231e63 Fixed bad curve ecdsa curve bug.
7 years ago
Stephen Fox 9328c9f9e0 Renamed "new*" SSH key pair methods.
7 years ago
Stephen Fox f8db84334d Alias 'golang.org/x/crypto/ssh' as 'gossh'.
7 years ago
Stephen Fox 9a9bc18fab Renamed SSH key pair source files per pattern.
7 years ago
Stephen Fox 7f6b307dd6 Remove 'Ssh' suffix from 'KeyPairType' constants.
7 years ago
Stephen Fox c6ae8654d9 Moved SSH key pair code into 'helper/ssh'.
7 years ago
Stephen Fox 7b857929ab Added 'SSHPublicKeyUrlEncoded()' to comm.Config.
7 years ago
Megan Marsh c63b54a1e7 move http with proxy call into a helper function
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
8 years ago
Ali Rizvi-Santiago b0af406e08 gofmt using v1.11.2 instead of disro's outdated v1.10.5.
8 years ago
Ali Rizvi-Santiago 040a33567e Trying again one more time to prevent import cycles.. Moved common.ExpandUser into packer.ExpandUser..
8 years ago
Ali Rizvi-Santiago 79b68fb89c Replaced the previous incorrect logic with an re-implementation of common.ExpandUser.
8 years ago
Ali Rizvi-Santiago e04986659a Changed the logic for when to actually prefix a path with a u.HomeDir so that it's only done when a non-absolute path is specified.
8 years ago
Ali Rizvi-Santiago 1a3c3f2ffc Replaced all instances of mitchellh/go-homedir with an implementation based on os/user.
8 years ago
Mikhail Ushanov ee0bff6451 communicator/ssh: proper error message
8 years ago
Mikhail Ushanov 45925657fc communicator/ssh: make ssh keys payload internal
8 years ago
Mikhail Ushanov 1c503b86d9 communicator/ssh: expand user path for bastion private key
8 years ago
Mikhail Ushanov 6d2a0ab0df communicator/ssh: expand user path for private key
8 years ago
Mikhail Ushanov da0bad8441 communicator/ssh: add private key file read helper
8 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Adrien Delorme b0c09087a2 move SSHInterface/SSHIPVersion fields to communitator.Config struct
8 years ago
Adrien Delorme 1d219cecaf add SSHTemporaryKeyPairName to communicator.Config
8 years ago
Adrien Delorme 9a9b82715b config.Comm.SSHKeyPair => SSHKeyPairName
8 years ago
Adrien Delorme 77a57f0354 communicator.Config: `mapstructure:"ssh_key_pair"` => ssh_keypair_name
8 years ago
Adrien Delorme 69dfe2565b SSHBastionPrivateKey => SSHBastionPrivateKeyFile
8 years ago
Adrien Delorme 5369c15459 helper: communicator.SSHFileSigner => ssh.FileSigner
8 years ago
Adrien Delorme b83c72fd54 more private keys in config
8 years ago
Adrien Delorme 663c8134ef GCP: put ssh public/private key in config
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Matthew Hooker e41e99954d
go 1.11 format rules
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Adrien Delorme fa44a4546f use ssh.ParsePrivateKey where we can
8 years ago
Adrien Delorme bacfb02182 doc better SSHConfigFunc
8 years ago
Adrien Delorme ab7f998862 SSHConfigFunc: use struct fields instead of copying them locally
8 years ago
Adrien Delorme 0ff7c1da87 SSHConfigFunc: append the ssh auth ways
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Ali Rizvi-Santiago a3cec4f274 Emit both the host and the communicator to the user during StepConnect.
8 years ago
Megan Marsh 3afb243f11 use build name to ensure that winrm password and other shared state is not overwritten if two builders need the password in the same packer run.
8 years ago
Seth Vargo b193b96f76
Include arch and os
8 years ago
Seth Vargo b17b333e29
Add a common package for specifying useragent and adopt that everywhere
8 years ago
Megan Marsh 4e32d0da24 stricter permissions on shared state file since it now contains a password
8 years ago
Megan Marsh 4d19f4f8b6 add all the new files
8 years ago
Josh Soref 64aae1c781 spelling: occurring
8 years ago
Josh Soref 5e167e3b6d spelling: accumulates
8 years ago
SwampDragons 5af42ee9e2
Revert "Add `winrm_no_proxy` option."
8 years ago
Matthew Hooker 22666153f9
Add `winrm_no_proxy` option.
8 years ago
Matthew Hooker 63f1673909
ssh deadlines
8 years ago
Matthew Hooker cab52872f4
add session level keep-alives for ssh communicator
8 years ago
Matthew Hooker 3e2895afec
comments
8 years ago
Matthew Hooker 2afd81741c
use correct context
8 years ago
Matthew Hooker ce4f30c5ae
fix tests
8 years ago
Matthew Hooker 8cd403425e
test fixes WIP
8 years ago
Matthew Hooker 5d48d658b4
Wire context through misc steps
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker a0c625ea44
Revert "working with opt-in"
8 years ago
Matthew Hooker e98f201602
working with opt-in
8 years ago
Matthew Hooker 62e3d1362f
pass context through step.run again
8 years ago
Matthew Hooker 030b5fd4f0
WIP add context to state bag
8 years ago
Matthew Hooker 07a5af66f8
remove ctx arg from step.run
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker 89d43256bb
pass context into step.run
8 years ago
Matthew Hooker 807e88245b
trying to add context to state bag
8 years ago
Pawel Kilar 17beb1d7ad Check if both SSH proxy and basiton are configured
9 years ago
Paul Kilar d9b404fa00 SOCKS5 proxy support
9 years ago
Megan Marsh 959db1ac16 add echo test to winrm connection.
9 years ago