Closed arumsey93 closed 2 years ago
When I run packer build:
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)
Is there anything special about your environment? Can't reproduce.
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)