Created
January 17, 2014 16:00
-
-
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
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
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.