- From:
- To: chef <
>
- Subject: [chef] knife create client creates nil pem
- Date: Wed, 20 Jul 2011 18:55:15 -0700
hello,
i'm following the instrux here:
http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu
and when it comes to "knife client create", it's creating a pem file that
contains "nil". it's that pem file that i'd want to transfer to my
laptop so i can run knife from there. but i don't think a pem file
contain nil will help :>
know what i'm doing wrong here?
thanks,
kallen
details below:
:~$
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
chef 0.10.2-2 is installed using "
http://apt.opscode.com/ natty-0.10 main".
we'll pick it up here:
:~$
sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef
:~$
sudo chown -R kallen:kallen .chef/
:~$
knife configure -i
WARNING: No knife configuration file found
Where should I put the config file? [~/.chef/knife.rb]
Please enter the chef server URL: [
http://cheftain2.example.com:4000]
Please enter a clientname for the new client: [root] kallen
Please enter the existing admin clientname: [chef-webui]
Please enter the location of the existing admin client's private key:
[/etc/chef/webui.pem] .chef/webui.pem
Please enter the validation clientname: [chef-validator]
Please enter the location of the validation key: [/etc/chef/validation.pem]
.chef/validation.pem
Please enter the path to a chef repository (or leave blank):
Creating initial API user...
Created client[kallen]
Configuration file written to /home/kallen/.chef/knife.rb
:~$
knife client list
chef-validator
chef-webui
cheftain2.example.com
kallen
:~$
knife client show kallen
_rev: 1-38d3fc208eb2569f1b781fd4d9f5a781
admin: true
chef_type: client
json_class: Chef::ApiClient
name: kallen
public_key: -----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA1+kdbZMGZ6vvVsLhfUobqPvaRtc4RhXQAXvDCmSf6Bd8nb9UEU1B
jPjioF/Tgnm5IahCgaipVwqFbauoqtEgdJR4s8mAFS5UgShnFZZjjvmsirpWAASy
09zbHLLWJyCIdrUeCCrxGuu4isiLHjcdQc3VCflFZ8kQqj1UJf993/H4Pi7l5vvN
rOriyQk8JfR/UhF+oQxKOgfUQwyjxoO0SMysuyk7BC6g4f4IMtW7/GGBehYp3dJK
lwP1IGpMab01i80qO1dJhDZZaYOSD/ITD/h5qt9n4MEBzO/M8nVFrEUzqaa4JZid
h8FmELrxRK3r4fCP/ang7GSW2tNVQlk7KQIDAQAB
-----END RSA PUBLIC KEY-----
:~$
knife client create kallen -n -a -f /tmp/kallen-chef.pem
Created client[kallen]
:~$
cat /tmp/kallen-chef.pem
:~$
- [chef] knife create client creates nil pem, kallen, 07/20/2011
Archive powered by MHonArc 2.6.16.