Knife ssh not work when a node is not bootstrapped
I have a node which is registered to chef server when its first time run the chef-client, so I can see the node in the web interface.
But I can’t run knife ssh to it, return error
So, in this case, what is the best way to copy the ssh key?
How to execute a node' runlist?
But the problem is: How can I request the node to execute the runlist from the webUI? Seems there is no way to do so?
Also the knife command is not able to do that? http://wiki.opscode.com/display/chef/Managing+Nodes+With+Knife
Is there some way to specify ssh user in the knife.rb file itself rather than on the cmd line?
Based on what I see in the source (https://github.com/opscode/knife-ec2/blob/master/lib/chef/knife/ec2_server_create.rb) :
I can’t think of single way of specifying a value for ssh_user inside the knife.rb file and not on the command line. Am I right about this? Or can someone illuminate me with some syntax I’m missing? So far I used trial & error to test the following but they didn’t get picked up:
how to use chef to build server through ruby code
Hi, I’m looking at chef for a new SaaS project and can see how to create a new server with knife. But is there a way to do this through ruby?
we have a ruby server that needs to periodically create new servers. While we can use the fog library to create the actual server on EC2, its not clear how to install the chef-client. knife can do this but its not clear that knife has an interface/api that ruby code can call. I guess my code could run knife as a shell command but I’m hoping for something a bit more elegant.
thanks in advance