Commit Graph

16292 Commits

Author SHA1 Message Date
Adrien Delorme b24911661f
add sshkey package and ssh-keygen comand (#10101)
* add sshkey.Generate function that returns an sshkey.Pair to be used with openssh.
* add cmd/ssh-keygen/main.go for testing purposes
* add a test calling ssh.ParsePrivateKey & ssh.ParseAuthorizedKey (which is very
   similar to what openssh would do to read a keypair)

The wrapping of the keys should be handled by crypto/x509.MarshalPKCS8PrivateKey 
& x/crypto/ssh.NewPublicKey which does not work for ed25519 and dsa. 
x509.MarshalPKCS8PrivateKey marshals ed25519 keys but the keys did not work with openssh. 
x509.MarshalPKCS8PrivateKey does not handle dsa keys.
So I had to 'wrap' those manually by reading the code of the openssh package.
Note that ssh.NewPublicKey works with any keytype. I should probably do a PR to ssh to have a NewPrivateKey & Marshalling funcs
2020-10-19 10:24:34 +02:00
Megan Marsh ef1b401a22
Merge pull request #10102 from mattr-/update-amazon-builder-for-io2
builder/amazon: Add io2 as a supported volume type
2020-10-16 16:32:57 -07:00
Megan Marsh cee3a14392
Merge pull request #10115 from bhundven/googlecompute_add-create-image-option
Add 'create_image' option to googlecompute
2020-10-16 16:01:44 -07:00
Bryan Hundven ecc8c6a44a Replace `create_image` with `skip_create_image`, as requested
Closes #9965
2020-10-16 15:42:30 -07:00
Bryan Hundven 476eefa26b Add 'create_image' option to googlecompute
When building a CI/CD deployment, during the PR process it's nice to be
able to run the builder, but not create the image the build produces.

Closes #9965
2020-10-16 15:42:17 -07:00
Megan Marsh 456214eb51
Merge pull request #10056 from marinsalinas/new_client
New official Outscale SDK migration.
2020-10-16 15:28:54 -07:00
Megan Marsh a8ee23a9f9
Merge pull request #10117 from hashicorp/packer_version_func_hcl
implement packer_version func in hcl
2020-10-16 14:38:39 -07:00
Megan Marsh f696e8286e contextual functions menu section for vault func 2020-10-16 14:27:16 -07:00
Megan Marsh 09c6d2880f implement packer_version variable in hcl 2020-10-16 14:07:05 -07:00
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114) 2020-10-16 10:57:42 +02:00
Wilken Rivera a17b1a5a89
Fix references to source blocks (#10113) 2020-10-16 10:26:29 +02:00
Wilken Rivera 7ba2ffe171
Merge pull request #10106 from hashicorp/more_hcl_docs
More hcl docs
2020-10-15 13:50:46 -04:00
Wilken Rivera 5d2f2b20e7
Merge pull request #10112 from jmfury/jm.bump-hsm-version-1.0.7
[Website] Update HSM version w/ waypoint
2020-10-15 13:45:48 -04:00
Jimmy Merritello f79b9dc735
Update HSM version 2020-10-15 11:35:19 -05:00
Wilken Rivera 343ac2d48d
syntax-json: Fix nested provisioner block example (#10109) 2020-10-15 16:04:01 +02:00
Megan Marsh 06efa61c13 a tiny bit more cleanup 2020-10-14 15:56:58 -07:00
Megan Marsh da15b85451 more updates 2020-10-14 13:35:21 -07:00
Megan Marsh 2cdc052d7c
Merge pull request #10097 from hashicorp/more_hcl_docs
Update HCL docs with a local resource-free example to empower users t…
2020-10-14 13:34:54 -07:00
Megan Marsh 31df482b61 remove old docs for previous behavior 2020-10-14 13:11:52 -07:00
Megan Marsh 00cc425b84 docs tweaks 2020-10-14 12:58:04 -07:00
Megan Marsh 5522980e4d
Merge pull request #10103 from jmfury/jm.website-bump-hsm-menu-v1.0.5
[Website] Bump HSM version
2020-10-14 12:46:16 -07:00
Megan Marsh 84d5de369f
Merge pull request #10104 from pwillis-els/pwillis-els-patch-1
Fix typos in hcl2_upgrade
2020-10-14 12:38:07 -07:00
Peter Willis f1b57b1e66
Fix typos 2020-10-14 15:04:18 -04:00
Peter Willis a81811663a
Fix typos 2020-10-14 14:52:17 -04:00
Megan Marsh c16354d594 Update HCL docs with a local resource-free example to empower users to tinker. 2020-10-14 11:24:15 -07:00
Jimmy Merritello e98b2d39db
Updated pkg 2020-10-14 12:55:53 -05:00
Jimmy Merritello 8121d6d8dc
Bump HSM version 2020-10-14 09:39:50 -05:00
Matt Rogers 15f97421e2
builder/amazon: Add io2 as a supported volume type
io2 volumes are new as of 2020-08-24. This adds support for specifying
them in a packer template and having the iops value specified take
effect.
2020-10-14 09:01:17 -05:00
Wilken Rivera c7ba5c9a14
Fix line ending issues for test files (#10096) 2020-10-14 11:03:43 +02:00
Megan Marsh 22622b234b
Merge pull request #10095 from hashicorp/hcl_docs
add docs for hcl2_upgrade command
2020-10-13 15:36:49 -07:00
Marin Salinas 22a49a2f2e chore: fix test 2020-10-13 16:19:15 -05:00
Megan Marsh 33019a0e01 add docs for hcl2_upgrade command 2020-10-13 13:56:54 -07:00
Marin Salinas 472b008a94 chore: fix test 2020-10-13 15:16:01 -05:00
Megan Marsh 4810a3d86f
Merge pull request #10077 from hashicorp/document_3348
builder/qemu: docs: users must re-apply packer defaults for drive and device arguments
2020-10-13 11:41:28 -07:00
Marin Salinas 2578bbbb50 chore: fix test 2020-10-13 12:54:25 -05:00
Marin Salinas 09f57537bf chore: fix lint issues on osc builder 2020-10-13 11:02:13 -05:00
Marin Salinas 56807553fc chore: fix lint issues on osc builder 2020-10-13 10:45:32 -05:00
Marin Salinas c5dffc1bff chore: add go mod vendor for new Outscale SDK 2020-10-13 10:17:37 -05:00
Wilken Rivera 3abae29752 Update generated docs 2020-10-13 10:33:59 -04:00
Megan Marsh ad129e7df9 update changelog 2020-10-12 16:29:41 -07:00
Megan Marsh 75cfc97da4
Merge pull request #10081 from hashicorp/f-ansible-remote-ssm-connectivity
provisioner/Ansible: Add Amazon SSM setup documentation
2020-10-12 10:49:41 -07:00
Megan Marsh 01ed398756
fix up alicloud docs to make it clearer that disk_size and other disk device options are not top level fields. (#10080) 2020-10-12 10:28:25 +02:00
Wilken Rivera d378a4477a
Merge pull request #10079 from hashicorp/vsphere_cluster_host_investigation
fix docs linking issue
2020-10-09 22:11:31 -04:00
Wilken Rivera 8154e5772f provisioner/Ansible: Add Amazon SSM setup documentation 2020-10-09 17:05:14 -04:00
Megan Marsh 709a173060 fix docs linking issue 2020-10-09 14:01:21 -07:00
Marin Salinas dcaf56596d
Merge pull request #10 from marinsalinas/bsuvolume
BSU Volume sdk migration
2020-10-09 14:37:53 -05:00
Megan Marsh b05fd9303e document that users must re-apply packer defualts for drive and device arguments 2020-10-09 10:39:27 -07:00
Megan Marsh b460d687ea
Merge pull request #10068 from jmfury/jm.website-bump-hsm-menu
Bump HSM version and rm meganav styles
2020-10-09 10:15:23 -07:00
Megan Marsh 774a168957
Merge pull request #10064 from hashicorp/refactor_step_run
builder/qemu: (tech-debt) Major refactor of step_run.
2020-10-08 11:54:34 -07:00
Jimmy Merritello 7ed2c2920f
Bump HSM version and rm meganav styles 2020-10-08 13:53:36 -05:00