Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define path to private key (.pem) in spork-config.yml #202

Open
glennmate opened this issue Apr 29, 2016 · 0 comments
Open

Define path to private key (.pem) in spork-config.yml #202

glennmate opened this issue Apr 29, 2016 · 0 comments

Comments

@glennmate
Copy link

PS C:\repos\chef-repo\cookbooks\role-remoteapp> knife spork upload role-remoteapp
WARN: Failed to read the private key C:/Users/gmate/gmate.pem: #<Errno::ENOENT: No such file or directory @ rb_sysopen -
 C:/Users/gmate/gmate.pem>
ERROR: Your private key could not be loaded from C:/Users/gmate/gmate.pem
Check your configuration file and ensure that your private key is readable

I want Knife Spork to pull the key from the same location as my knife.rb file (as seen below)

client_key               "C:\\users\\gmate\\.ssh\\gmate.pem"

Unless I'm missing something it would be nice for Spork to find the key path properly from knife.rb, if specified. I have generated ~/.chef/spork-config.yml - if there's a way to define this here please pardon my issue but I couldn't find the information needed in the readme.

For clarification, this is on a windows system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant