Created
July 15, 2013 17:11
-
-
Save Version2beta/6001657 to your computer and use it in GitHub Desktop.
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
-> cat Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.omnibus.chef_version = :latest | |
config.vm.box = "precise64" | |
config.vm.network :private_network, ip: "10.42.42.2" | |
# config.vm.network :public_network | |
config.vm.synced_folder "./shared", "/shared" | |
config.vm.provider :virtualbox do |vb| | |
# Uncomment to boot with GUI | |
# vb.gui = true | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
end | |
# config.vm.provision :shell, :inline => "gem install chef --version 10.26.0 --no-rdoc --no-ri --conservative" | |
config.vm.provision :chef_solo do |chef| | |
chef.json = { | |
"environment" => "development", | |
"base" => { | |
"user" => { | |
"name" => "vagrant", | |
"group" => "vagrant", | |
"home" => "/home/vagrant" | |
} | |
}, | |
"python" => { | |
"install_method" => "package" | |
} | |
} | |
chef.cookbooks_path = "./cookbooks" | |
chef.add_recipe "idottv_base" | |
end | |
end | |
-> vagrant destroy && vagrant up | |
Are you sure you want to destroy the 'default' VM? [y/N] y | |
[default] Forcing shutdown of VM... | |
[default] Destroying VM and associated drives... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Importing base box 'precise64'... | |
[default] Matching MAC address for NAT networking... | |
[default] Setting the name of the VM... | |
[default] Clearing any previously set forwarded ports... | |
[default] Creating shared folders metadata... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] Running any VM customizations... | |
[default] Booting VM... | |
[default] Waiting for VM to boot. This can take a few minutes. | |
[default] VM booted and ready for use! | |
[default] Configuring and enabling network interfaces... | |
[default] Mounting shared folders... | |
[default] -- /shared | |
[default] -- /vagrant | |
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks | |
[default] Installing Chef 11.4.4 Omnibus package... | |
[default] Running provisioner: chef_solo... | |
Generating chef JSON and uploading... | |
Running chef-solo... | |
stdin: is not a tty | |
[2013-07-15T17:04:45+00:00] INFO: *** Chef 11.4.4 *** | |
[2013-07-15T17:04:45+00:00] INFO: Setting the run_list to ["recipe[idottv_base]"] from JSON | |
[2013-07-15T17:04:45+00:00] INFO: Run List is [recipe[idottv_base]] | |
[2013-07-15T17:04:45+00:00] INFO: Run List expands to [idottv_base] | |
[2013-07-15T17:04:45+00:00] INFO: Starting Chef Run for precise64 | |
[2013-07-15T17:04:45+00:00] INFO: Running start handlers | |
[2013-07-15T17:04:45+00:00] INFO: Start handlers complete. | |
================================================================================ | |
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/idottv_base/recipes/default.rb | |
================================================================================ | |
Chef::Exceptions::InvalidRemoteFileURI | |
-------------------------------------- | |
nil is not a valid `source` parameter for remote_file. `source` must be an absolute URI or an array of URIs. | |
Cookbook Trace: | |
--------------- | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/recipes/pip.rb:41:in `block in from_file' | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/recipes/pip.rb:40:in `from_file' | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/recipes/default.rb:22:in `from_file' | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/idottv_base/recipes/default.rb:29:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/recipes/pip.rb: | |
34: end | |
35: | |
36: # Ubuntu's python-setuptools, python-pip and python-virtualenv packages | |
37: # are broken...this feels like Rubygems! | |
38: # http://stackoverflow.com/questions/4324558/whats-the-proper-way-to-install-pip-virtualenv-and-distribute-for-python | |
39: # https://bitbucket.org/ianb/pip/issue/104/pip-uninstall-on-ubuntu-linux | |
40: remote_file "#{Chef::Config[:file_cache_path]}/distribute_setup.py" do | |
41>> source node['python']['distribute_script_url'] | |
42: mode "0644" | |
43: not_if { ::File.exists?(pip_binary) } | |
44: end | |
45: | |
46: execute "install-pip" do | |
47: cwd Chef::Config[:file_cache_path] | |
48: command <<-EOF | |
49: #{node['python']['binary']} distribute_setup.py --download-base=#{node['python']['distribute_option']['download_base']} | |
50: #{::File.dirname(pip_binary)}/easy_install pip | |
[2013-07-15T17:04:46+00:00] ERROR: Running exception handlers | |
[2013-07-15T17:04:46+00:00] ERROR: Exception handlers complete | |
[2013-07-15T17:04:46+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[2013-07-15T17:04:46+00:00] FATAL: Chef::Exceptions::InvalidRemoteFileURI: nil is not a valid `source` parameter for remote_file. `source` must be an absolute URI or an array of URIs. | |
Chef never successfully completed! Any errors should be visible in the | |
output above. Please fix your recipes so that they properly complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment