Dileep17
Dileep17

Reputation: 339

'knife: command not found' after chef-server installation

Im learning chef. I have setup couple of centos 6.4 vms. On one of the VMs(say chef-server), installed chef-server-core-12.6.0-1.el5.x86_64.rpm, server front-end, reconfigured chef-server-ctl and chef-manage-ctl and setup user & org. I downloaded starter kit from front end and extracted chef-repo folder on chef-server vm. Here is my problem. Based on the tutorial i'm following, I should be able to run knife ssl fetch from chef-repo folder. But, I am facing knife: command not found error. I tried googling but could find the an exact reason. What am I missing!! Please help me.

Thanks in Advance.

Upvotes: 1

Views: 6145

Answers (2)

Karan Khara
Karan Khara

Reputation: 100

I was getting similar errors while trying to run knife related commands. I restarted the windows 2012, and then I was able to run these commands. Try this.

Upvotes: 0

StephenKing
StephenKing

Reputation: 37630

The chef repo and the starter kit, together with ChefDK does not belong to the server, but to the workstation, aka. your laptop.

knife is included and ChefDK and used to communicate with the Chef Server.

EDIT: Actually, I think the Chef Components section of the official documentation provides a good overview.


Not sure, which tutorial you are following - the official one is on learn.chef.io. Does that provide clear guidance?

Upvotes: 5

Related Questions