knife-spork
knife-spork copied to clipboard
Define path to private key (.pem) in spork-config.yml
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.