Megan Marsh
9e47696dff
move helper/config to bundle with the other template definitions
2020-11-18 10:34:59 -08:00
Megan Marsh
007337989e
move communicator helpers into communicator dir
2020-11-18 10:24:25 -08:00
Megan Marsh
3f6deb8828
move multistep into the plugin sdk
2020-11-17 16:31:03 -08:00
Megan Marsh
1ffc358ada
move tmp helper func into packer-plugin-sdk
2020-11-16 15:13:08 -08:00
Megan Marsh
6402362018
create packer-plugin-sdk directory and begin moving the relevant folders into it.
2020-11-13 10:47:36 -08:00
Megan Marsh
df9febef1b
move communicators into sdk-internals directory
2020-11-13 10:44:07 -08:00
Adrien Delorme
b4f68767a3
make default key type RSA instead of DSA
2020-10-26 15:45:06 +01:00
Adrien Delorme
4aea2efd0f
HCL2: fully name SSHTemporaryKeyPair fields so that they don't conflict and can be generated
2020-10-21 11:53:07 +02:00
Adrien Delorme
d1e0214bec
avoid panic debugging ssh key
2020-10-20 16:59:46 +02:00
Adrien Delorme
54032d6c11
gen code and docs
2020-10-15 16:51:23 +02:00
Adrien Delorme
f4f731b83c
Refactor google compute's temporary ssh keygen genertion to use the sshkey package
2020-10-15 16:51:11 +02:00
Adrien Delorme
5b7037c069
add more comments
2020-10-14 16:01:41 +02:00
Adrien Delorme
fe8d287036
some linting
2020-10-14 15:54:51 +02:00
Adrien Delorme
c5d6e72720
comment PairFromED25519
2020-10-14 13:21:46 +02:00
Adrien Delorme
766e7872a0
add a comment for DSA default bits setting
2020-10-14 13:17:53 +02:00
Adrien Delorme
77adeb1191
create PairFromED25519 func to create valid ed25519 keypairs
2020-10-14 13:12:17 +02:00
Adrien Delorme
3712cd8e2c
bump default RSA bits to 4096
2020-10-13 17:50:43 +02:00
Adrien Delorme
9b68099ad5
remove specific EC code
2020-10-13 16:27:59 +02:00
Adrien Delorme
48199c5aa8
add basic test to see if generated files are parseable
2020-10-13 16:25:24 +02:00
Adrien Delorme
ca23dab943
set correct type for PEM block
2020-10-13 12:43:21 +02:00
Adrien Delorme
750102901c
add cmd/ssh-keygen/main.go to try this on real servers
2020-10-13 11:25:52 +02:00
Adrien Delorme
0cf7af4247
add sshkey.Generate function
2020-10-12 18:04:02 +02:00
Megan Marsh
94a9beaac6
fix up documentation for virtualbox key pair ssh options
2020-09-04 16:55:58 -07:00
Megan Marsh
2dcf950441
change pause to run connect again afterwards
2020-08-14 11:23:43 -07:00
Megan Marsh
a687d6fe12
ci/tech-debt: Fix vmware acceptance tests ( #9636 )
...
* add kex algorithm option to ssh config
* regenerate code
* This commit fixes old vmware acceptance tests that have not been run in some time. It does this in two parts:
1) It modifies the minimal vmware build configuration to use a custom kex algorithm, which enables the ssh connection to succeed.
2) It modifies logic in reading and defaulting hardware config values, which was crashing.
3) It adds a new acceptance test with a preseed file to test loading from an http directory.
2020-07-23 09:40:57 +02:00
Adrien Delorme
fd6be7f279
better/simpler `pause_before_connecting` example
2020-07-20 16:03:40 +02:00
Megan Marsh
530f5e3f63
more additions to partials
2020-07-17 15:52:11 -07:00
Roger Hu
31a7a1d637
adding basic support for OpenSSH CertificateFile support
...
small fix
2020-07-10 16:54:08 -07:00
Moss
8ea64c5b35
undocument ssh_keypair_name and ssh_agent_auth
2020-07-02 14:55:58 +02:00
Moss
41edd09d3c
undocument temporary_key_pair_name and ssh_private_key_file
2020-07-01 16:33:18 +02:00
Megan Marsh
cacdb0ca02
add tests
2020-06-18 11:31:00 -07:00
Megan Marsh
4f77bb0c4a
add new ssh_ciphers option
2020-06-17 16:48:23 -07:00
Megan Marsh
a07563c64f
fix up typos in comments and regenerate docs.
...
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-06-16 10:27:30 -07:00
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.
2020-06-16 10:27:30 -07:00
Adrien Delorme
40947c2bf6
HCL2: generate hcl tags with go-cty tags too ( #9306 )
...
This will allow to generate the config files:
```go
package main
import (
"fmt"
"github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl/v2/hclwrite"
"github.com/hashicorp/packer/builder/alicloud/ecs"
)
func main() {
name := "name"
app := ecs.FlatConfig{
AlicloudImageName: &name,
ECSSystemDiskMapping: &ecs.FlatAlicloudDiskDevice{
DiskName: &name,
},
}
f := hclwrite.NewEmptyFile()
block := gohcl.EncodeAsBlock(&app, `source "something" "something"`)
f.Body().AppendBlock(block)
fmt.Printf("%s", f.Bytes())
}
```
Will output:
```
source "something" "something" {
packer_user_variables = null
packer_sensitive_variables = null
image_name = "name"
image_share_account = null
image_unshare_account = null
image_copy_regions = null
image_copy_names = null
tags = null
tag = null
system_disk_mapping = { disk_category = null, disk_delete_with_instance = null, disk_descri
ption = null, disk_device = null, disk_encrypted = null, disk_name = "name", disk_size = null, disk_
snapshot_id = null }
image_disk_mappings = null
ssh_remote_tunnels = null
ssh_local_tunnels = null
ssh_public_key = null
ssh_private_key = null
}
```
This is a good first step for #9015 and #9282
fix #9304
2020-05-28 11:19:00 +02:00
Megan Marsh
7e0cfd8b77
add undocumented tag to struct-markdown generator so that we can leave internal-use-only fields out of docs
2020-05-01 10:31:38 -07:00
Jeff Escalante
2999934326
fix generation script, bugfixes in source comments, update website paths in primary codebase
2020-04-07 17:53:22 -04:00
Jeff Escalante
4afd107eeb
patch source files for extensions changes
2020-04-07 17:50:51 -04:00
Adrien Delorme
88297c796d
Merge branch 'master' into hcl2_singular_blocks
2020-03-17 14:47:17 +01:00
Adrien Delorme
834f44190f
go generate
2020-03-17 12:30:36 +01:00
Adrien Delorme
87d6b2433f
make generate
2020-03-16 15:21:29 +01:00
Megan Marsh
fc35f02004
Merge pull request #8890 from hashicorp/fix_8880
...
fix googlecompute password interpolation
2020-03-13 12:55:12 -07:00
Megan Marsh
6008f911fd
Merge pull request #8847 from takaishi/support-keyboard-interactive
...
communicator/ssh: support keyboard-interactive auth to connect bastion
2020-03-13 11:48:12 -07:00
Megan Marsh
bcb7b8751c
fix googlecompute password interpolation
2020-03-13 11:01:43 -07:00
Adrien Delorme
60a3105a45
make ssh docs less AWS specific
2020-03-13 11:46:52 +01:00
r_takaishi
70e3f60539
write unit test
2020-03-13 14:01:11 +09:00
r_takaishi
f50ff1d270
make generate
2020-03-13 11:29:42 +09:00
Wilken Rivera
7b705545d9
docs: Various doc clean-ups to fix code block formatting and syntax highlighting ( #8868 )
2020-03-12 15:05:08 +01:00
r_takaishi
34bb0429d0
keyboard-interactive used when ssh_bastion_host is true.
2020-03-11 10:37:57 +09:00
Sylvia Moss
76f13deaf4
Make template variables SSHPublicKey and SSHPrivateKey as strings ( #8829 )
2020-03-09 17:25:05 +01:00