ivoronin / packer-plugin-sshkey

Packer plugin used to generate SSH keys.
18 stars 10 forks source link

Packer Build not able to validate private key path #4

Closed arumsey93 closed 2 years ago

arumsey93 commented 2 years ago

When I run packer build:

data "sshkey" "Linux" {}

communicator = "ssh" ssh_username = "root" ssh_private_key_file = data.sshkey.Linux.private_key_path ssh_clear_authorized_keys = true ssh_timeout = "30m" http_content = { "/preseed.cfg" = templatefile("preseed.cfg.pkrtpl", { "ssh_public_key" : data.sshkey.Linux.public_key }) }

Error: Datasource.Execute failed: open /workspace/packer-image-config/packer_cache/ssh_private_key_packer.pem: no such file or directory

on Linux/sources.pkr.hcl line 1: (source code not available)

ivoronin commented 2 years ago

Is there anything special about your environment? Can't reproduce.