and knife boostrap to initialize itcat Vagrantfile
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :hostonly, "33.33.33.20"
config.vm.share_folder "v-root", "/vagrant", ".", :nfs => true
config.ssh.forward_agent = true
#config.vm.boot_mode = :gui
config.vm.forward_port 80, 8080end
We have a base role in our company that installs the correct ruby version and a chef-client.knife bootstrap 127.0.0.1 -p 2222 -E development-waldemarschwan -d adcloud -r "role[base]" --sudo -x vagrant -N platform-dev -i /Users/velrok/.vagrant.d/insecure_private_key
As far as I know it should not try to load any validation.pem.:~$ chef-client
[2012-11-12T14:05:13+00:00] INFO: *** Chef 10.14.4 ***
[2012-11-12T14:05:13+00:00] WARN: Failed to read the private key /etc/chef/client.pem: #<Errno::EACCES: Permission denied - /etc/chef/client.pem>
================================================================================
Chef encountered an error attempting to create the client "platform-dev-1352727376"
================================================================================
Private Key Not Found:
----------------------
Your private key could not be loaded. If the key file exists, ensure that it is
readable by chef-client.
Relevant Config Settings:
-------------------------
validation_key "/etc/chef/validation.pem"
/var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/file_cache.rb:56:in `initialize': Permission denied - /var/cache/chef/chef-stacktrace.out (Errno::EACCES)
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/file_cache.rb:56:in `open'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/file_cache.rb:56:in `store'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/application.rb:144:in `debug_stacktrace'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/client.rb:314:in `rescue in block in run_application'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/client.rb:271:in `block in run_application'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/client.rb:270:in `loop'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/client.rb:270:in `run_application'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/lib/chef/application.rb:70:in `run'
from /var/lib/gems/1.9.1/gems/chef-10.14.4/bin/chef-client:26:in `<top (required)>'
from /usr/local/bin/chef-client:23:in `load'from /usr/local/bin/chef-client:23:in `<main>'
Archive powered by MHonArc 2.6.16.