[chef] Re: knife bootstrap not finding validation.pem


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: knife bootstrap not finding validation.pem
  • Date: Mon, 29 Oct 2012 21:08:30 +0530

try 
"#{ENV['HOME']}/.chef/validation.pem"


i guess ~ is only understood by shell, not by ruby


On Mon, Oct 29, 2012 at 8:44 PM, < " target="_blank"> > wrote:
I'm trying to use knife to bootstrap a client, and in my knife.rb file, the
validation.pem path is listed as ~/.chef/validation.pem, When I run the
bootstrap process, I get a message indicating that validation.pem cannot be
found.

I did find though if I put a full path to the file, such as
/home/myuser/.chef/validation.pem, it does work. Is the ~/.chef path
interpreted as relative to the ssh user (the user running the knife bootstrap
is different than the ssh username). I wouldn't think so, but I'm not sure.

Any reason why this wouldn't work?




Archive powered by MHonArc 2.6.16.

§