12119 Commits

Author SHA1 Message Date
Stephen Fox
4b649f7ce4 Use individual key pair implementations.
This allows us to store more information about the key pair.
In particular, we can query the private key for its bits of
entropy - avoiding the possibility of hardcoding the wrong value.
2019-02-05 11:53:12 -05:00
Miłosz Smółka
0d8e9f50bf Add proper SCSI search 2019-02-05 16:20:42 +01:00
Stephen Fox
d7510ecdf7 Tweaked 'PublicKeyAuthorizedKeysLine()' comment. 2019-02-05 09:54:38 -05:00
Stephen Fox
58c692a587 Get bits from private key rather than user input. 2019-02-05 09:52:46 -05:00
Adrien Delorme
9787e787d4
Merge pull request #7276 from paulmey/fix-7267
Fix Azure interactive authentication
2019-02-05 10:34:50 +01:00
Paul Meyer
68516fc05c Fix Azure interactive authentication
Builder looks up tenant ID before asking for token. Client config did
not allow that. Also found that token provider was not properly
initialized.

Fixes 7267
2019-02-05 02:35:12 +00:00
Megan Marsh
a7d9d62996 fix tests on windows 2019-02-04 16:11:25 -08:00
Megan Marsh
8add176ab7 finish first pass at vault code; needs testing and cleanup of error messages 2019-02-04 15:54:14 -08:00
Megan Marsh
7a78b47e83 make vault engine stuff into a little struct for easier management 2019-02-04 15:29:45 -08:00
Megan Marsh
6b41a1663a updated the amazon ebs docs to include vault integration 2019-02-04 15:13:20 -08:00
Megan Marsh
af7131b169 tests, logic cleanup, docs for vagrant builder 2019-02-04 14:08:43 -08:00
Megan Marsh
52892699ca make it work with a local vagrant box 2019-02-04 14:08:43 -08:00
Megan Marsh
ad21367b21 vagrant builder 2019-02-04 14:08:43 -08:00
Megan Marsh
9f93fb2748
Merge pull request #7264 from rhtyd/go-cloudstack-vendor-update
vendor: update go-cloudstack v2.4.1
2019-02-04 14:02:01 -08:00
Megan Marsh
ee2ed063e9
Merge pull request #7265 from danowar2k/master
FIX for PR #7254
2019-02-04 13:58:06 -08:00
Megan Marsh
2d3f84abf0
Merge pull request #7271 from hashicorp/make_generate
make generate
2019-02-04 13:11:24 -08:00
Stephen Fox
f3128143fa Simplified building of authorized_keys public key. 2019-02-04 14:27:59 -05:00
Stephen Fox
f2c11b55be Renamed authorized_keys public key function. 2019-02-04 14:27:14 -05:00
Stephen Fox
d465231e63 Fixed bad curve ecdsa curve bug. 2019-02-04 14:25:37 -05:00
Rickard von Essen
36546c5dfe
Merge pull request #7274 from rickard-von-essen/ansible-docs
Ansible docs
2019-02-04 20:19:39 +01:00
Stephen Fox
9328c9f9e0 Renamed "new*" SSH key pair methods. 2019-02-04 14:12:18 -05:00
Megan Marsh
6c2e60ffa9
Merge pull request #7266 from hashicorp/fix_7259
quote variables in powershell script to account for spaces
2019-02-04 10:34:55 -08:00
Rickard von Essen
26aa0144e6
ansible: Change the doc navigator to Ansible (Remote) 2019-02-04 18:56:52 +01:00
Stephen Fox
ea2a7c3fe9 Merge branch 'master' into 'ephemeral-ssh-key-pair-issue-7225'. 2019-02-04 12:47:42 -05:00
Rickard von Essen
52b55fb899
ansible: change local_port to uint instead of string 2019-02-04 18:47:42 +01:00
Stephen Fox
01c98f3d82 Tweaked debug SSH private key file name for vbox. 2019-02-04 12:47:18 -05:00
Stephen Fox
f8db84334d Alias 'golang.org/x/crypto/ssh' as 'gossh'. 2019-02-04 12:29:47 -05:00
Stephen Fox
9a9bc18fab Renamed SSH key pair source files per pattern.
There appears to be a pattern of naming SSH key pair related
source files "*_key_pair*".
2019-02-04 12:25:00 -05:00
Stephen Fox
7f6b307dd6 Remove 'Ssh' suffix from 'KeyPairType' constants. 2019-02-04 12:23:42 -05:00
Stephen Fox
c6ae8654d9 Moved SSH key pair code into 'helper/ssh'. 2019-02-04 12:21:58 -05:00
Rickard von Essen
6d700d34df
ansible: some doc style fixes 2019-02-04 18:21:44 +01:00
Stephen Fox
25775886a8 Properly set SSH key pair name. 2019-02-04 12:12:18 -05:00
Stephen Fox
4c2851013e Fixed 'sed' regex to remove public key by magic string. 2019-02-04 12:10:17 -05:00
Stephen Fox
be081944b1 Moved new key pair funcs closer to builder funcs. 2019-02-04 12:09:23 -05:00
Stephen Fox
b1b67ecffa Added support for setting a name in SSH key pair.
Also refactored how new SSH key pairs are created, and how the
tests are structured.
2019-02-04 12:07:32 -05:00
Stephen Fox
5893134c61 Updated comment for 'PrivateKeyPemBlock()'. 2019-02-04 10:02:07 -05:00
Adrien Delorme
8621949e01 make generate 2019-02-04 15:16:38 +01:00
Adrien Delorme
9f1ec211a0
Merge pull request #7268 from mayn/docs-updates-v144
docs - minor fixes
2019-02-04 10:45:20 +01:00
Matthew Aynalem
b404cfc365 add builder/tencentcloud-cvm to sidebar
post-processors/docker-import - move tags under optional
add missing data types to various attributes
2019-02-03 16:24:38 -08:00
Stephen Fox
cd4ae03324 Create / use SSH key pairs in vbox builders.
This follows the business logic for creating / using SSH key pairs
in the cloud-type builders (e.g., Amazon EC2).
2019-02-03 12:20:52 -05:00
Stephen Fox
72d1501551 Made SSH public key available in vbox boot command.
The SSH public key (in authorized_keys format) can be retreived in
the build template by specifying '{{ .SSHPublicKey }}'. The key is
URL encoded to escape spaces.
2019-02-03 12:20:42 -05:00
Stephen Fox
7b857929ab Added 'SSHPublicKeyUrlEncoded()' to comm.Config.
This allows us to get a URL encoded string representing the SSH
public key. This is needed because the key will have spaces when
it is in authorized_keys format.
2019-02-03 12:14:06 -05:00
Stephen Fox
459bd1ea7a Added vbox step for SSH key pair business logic. 2019-02-03 12:07:57 -05:00
Stephen Fox
6824806e6f Allow caller to specify new line for SSH public key.
The default behavior of the various builders that create SSH key
pairs appears to be to add a trailing new line. This will be the
default behavior, but at least it can be customized if desired.
2019-02-03 10:37:32 -05:00
Stephen Fox
ad075ffac3 Added 'Description()' to 'sshKeyPair'.
Also cleaned up tests.
2019-02-03 09:17:18 -05:00
Miłosz Smółka
f7de056f23 Add proper cleanup of chroot disk
Closes #3
2019-02-03 00:30:56 +01:00
Rohit Yadav
5af1c89e6e go.sum: tidy and remove old go-cloudstack dependency checksums
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-02-03 01:55:25 +05:30
Miłosz Smółka
5e8eade205 Add support for custom API url of compatible service
Closes #4
2019-02-02 14:05:06 +01:00
Daniel Poggenpohl
6857e937e2 - FIX: That's what I get for wanting to use fancy or/and piping, back to basics (Now using explicit rc test to decide whether to quit) 2019-02-01 23:11:22 +01:00
Megan Marsh
482ba644a8 quote variables in powershell script to account for spaces 2019-02-01 13:23:17 -08:00