Skip to content

Instantly share code, notes, and snippets.

@xionon
Created January 17, 2014 16:00
Show Gist options
  • Save xionon/8475891 to your computer and use it in GitHub Desktop.
Save xionon/8475891 to your computer and use it in GitHub Desktop.
Using this Vagrantfile, "vagrant up" fails running chef-solo with the error: FATAL: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.provision :chef_solo do |chef|
chef.environment = "development"
chef.environments_path = "environments"
end
end
@xionon
Copy link
Author

xionon commented Jan 17, 2014

I realize this doesn't setup any cookbooks, etc., so it wouldn't be a "valid" setup. This is just the simplest possible Vagrantfile that can reproduce the error.

Even with a fully setup chef_solo, adding environments causes chef-solo to fail.

@mitchellh
Copy link

I'll give it a shot in a second and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment