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
Daniel Poggenpohl
b0abd1fbf3
- FIX: I should call my defined functions, else they are useless
2019-02-01 20:48:42 +01:00
Megan Marsh
6cac03044f
Merge pull request #7248 from oceyral/oceyral/feat/add_user_data
...
Add "custom_data" key to packer manifest post-processor
2019-02-01 11:37:44 -08:00
Rohit Yadav
47e03a815f
vendor: update go-cloudstack v2.4.1
...
This fixes #7263 and updates the dependency go-cloudstack v2.4.1
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-02-02 00:56:40 +05:30
Megan Marsh
f0b1d3cbf2
Merge pull request #7262 from hashicorp/fix_7257
...
make sure 'only' completely ignores post-processor
2019-02-01 10:01:55 -08:00
Miłosz Smółka
6921cc93a9
Add acceptance tests for chroot
2019-02-01 18:58:16 +01:00
Miłosz Smółka
4704565869
Rename vm_flavour to vm_type
2019-02-01 18:57:43 +01:00
Adrien Delorme
25f51b9f99
Merge pull request #7261 from davividal/fixes-checksum-1.11.4
...
Fixes checksum for dependencies for Go 1.11.4+
2019-02-01 18:06:19 +01:00
Adrien Delorme
ca180d27fb
update/fix some more modules
2019-02-01 17:53:56 +01:00
Miłosz Smółka
e7e84f04e7
Fix timestamp interpolation in mount path
...
Closes #1
2019-02-01 17:46:35 +01:00
Adrien Delorme
dd3e2c255c
respect a 'only' defined in a post-processor
2019-02-01 15:50:06 +01:00
Adrien Delorme
074a74ec38
make sure 'only' completely ignores post-processor
...
before this commit, if one would put a 'only' inside the post-processor definition, the post process could be skipped
2019-02-01 15:21:41 +01:00
Adrien Delorme
55bfee509a
Merge pull request #7260 from Murcurio/patch-1
...
Change GCP metadata url to FQDN
2019-02-01 14:44:33 +01:00
Davi Vidal
2bc4e6aec6
Fixes checksum for dependencies for Go 1.11.4+
2019-02-01 12:38:28 +01:00
Olivier Ceyral
4d10d668ee
Add "custom_data" key to packer manifest
2019-02-01 10:41:34 +01:00
Murcurio
60c7d22ffb
Change metadata url to FQDN
...
If instance has a different DNS/search domain then "metadata" alone won't work. The FQDN of "metadata.google.internal" is included in hosts file, and will work regardless of DNS configuration. Alternatively the IP 169.254.169.254 can be used.
2019-02-01 15:36:40 +11:00
Megan Marsh
eef4fc7a01
Merge pull request #7222 from Adezandee/gce-post-processors
...
googlecompute-postprocessors: service account and export configs
2019-01-31 16:58:42 -08:00
Megan Marsh
6ea64bc378
Merge pull request #7191 from arizvisa/GH-7190
...
Adds support to the vmware builders for specifying the number of cores per socket via the `cores` option.
2019-01-31 15:27:52 -08:00
Megan Marsh
888f4d440c
Merge pull request #7251 from yaakov-h/7250-fix-overflow
...
Hyper-V: Fix integer overflows in 32-bit builds
2019-01-31 15:22:33 -08:00
Megan Marsh
63a3bb0105
Merge pull request #7254 from danowar2k/master
...
Fix for #7253
2019-01-31 11:07:09 -08:00
Daniel Poggenpohl
864ea7084d
Merge branch '#7253-build-script-capitalization'
2019-01-31 15:53:53 +01:00
Daniel Poggenpohl
ce760eec09
- More comments
...
- encapsulated code in functions to make it more readable
- validate presence of used tools/binaries (check if they're in PATH)
- more output
- FIX: make all uname/OSTYPE output to lowercase and check only for that
- refactored method name convert_path -> convertPathOnCygwin
- gave convert_path two arguments to make it more readable (Readability over tight code? I don't know what is required)
- some variable expansion now uses braces
2019-01-31 15:50:10 +01:00
Stephen Fox
f233e54992
Initial SSH key pair helper implementation.
2019-01-30 22:10:27 -05:00
Yaakov
0a08920816
Hyper-V: Fix integer overflows in 32-bit builds
2019-01-31 13:53:01 +11:00