I've added a communicator.StepSSHKeyGen to let the communicator pre-generate the SSH key pair, used that key and removed the code that creates a new RSA SSH key pair in stepCreateSSHKey.
This means the plugin now supports temporary_key_pair_type and temporary_key_pair_bits.
I've added a
communicator.StepSSHKeyGen
to let the communicator pre-generate the SSH key pair, used that key and removed the code that creates a new RSA SSH key pair instepCreateSSHKey
.This means the plugin now supports
temporary_key_pair_type
andtemporary_key_pair_bits
.I used https://github.com/hashicorp/packer-plugin-digitalocean/commit/e88d4df09e8085fe4ed76fc219762f3e7970186b as a baseline.
I've run the acceptance test and it completes successfully, after adding the required
ssh_username
. I don't think this needs any change to the docs.