- From: Joshua Miller <
>
- To:
- Subject: [chef] Re: Knife problems
- Date: Mon, 19 Apr 2010 02:31:22 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=bbOdSh3Scu+k2WajKbpe9htaiIW+zJt7GRvAKPfJoedcUg0PvMUJWOoCRPRW+gjqgg fLigGr8lu64vXkeJ9RTPOMtb4hOGonx7kP9ts1FcMfeSSq6a9w6GlYEOSWMVGVX80HCd p7WaGyNoV/o/zDKeTEHWJ+61sx5ClonpIhFBs=
not sure if this is any help
User creation:
:~$
sudo knife configure --initial
Your chef server URL?
http://srv-101-03.mydomain.com:4000
Your client user name? <adminuser>
Your validation client user name? chef-validator
Path to a chef repository (or leave blank)?
WARN: Creating initial API user...
INFO: Created (or updated) client[adminuser]
WARN: Configuration file written to /home/adminuser/.chef/knife.rb
Verify user:
:~$
knife node list
[
"srv-101-03.mydomain.com"
]
:~$
Also I had some really odd issues with the validator pem and had to destroy
the validation user and recreate which I found at:
http://blog.ibd.com/scalable-deployment/reseting-the-opscode-chef-server-validation-keypem/
On Apr 19, 2010, at 2:13 AM, Ryan Richards wrote:
>
Im hoping someone can help me with knife. I have tried to configure it
>
every way possible but i still get the 401 error. I am trying to run it on
>
the server. I've also encountered the same issue with trying to install
>
cookbooks - i assume this is because knife is used to configure the changes
>
on the server.
>
>
I used 'knife configure' on the server and created a 'client' as myself.
>
Then copied the private key from the admin console along with the
>
validation.pem from /etc/chef. Still no luck. I must be overlooking
>
something very simple perhaps?
>
>
thanks
>
Ryan
>
Archive powered by MHonArc 2.6.16.