jeremyquinton / vagrant_demo Goto Github PK
View Code? Open in Web Editor NEWDemo of virtual box, vagrant and chef
Demo of virtual box, vagrant and chef
Hi Jeremy
once i start vagrant up --no-provision i get a gui with a login prompt but i dont remember the login details, could you confirm any login details used throught the package. mysql etc?
also after i run vagrant provision i get these errors
bizmate$ vagrant provision
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[2013-01-15T17:58:55+00:00] INFO: *** Chef 10.16.2 ***
[2013-01-15T17:58:56+00:00] INFO: Setting the run_list to ["role[local]"] from JSON
[2013-01-15T17:58:56+00:00] INFO: Run List is [role[local]]
[2013-01-15T17:58:56+00:00] INFO: Run List expands to [yum::ius, hostsfile-writer, iptables-writer, mysql::server, apache2, apache2::mod_deflate, apache2::mod_rewrite, apache2::mod_expires, apache2::mod_headers, apache2::vagrant_demo, php, php::module_mysql]
[2013-01-15T17:58:56+00:00] INFO: Starting Chef Run for localhost
[2013-01-15T17:58:56+00:00] INFO: Running start handlers
[2013-01-15T17:58:56+00:00] INFO: Start handlers complete.
[2013-01-15T17:58:56+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
node["key"] = "value"
# Not this
to:
node.set["key"] = "value"
# This
Called from:
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in method_missing' /usr/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in
send'
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2013-01-15T17:58:56+00:00] INFO: Could not find previously defined grants.sql resource
[2013-01-15T17:58:56+00:00] INFO: Processing remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm] action create (yum::epel line 38)
[2013-01-15T17:59:03+00:00] INFO: Retrying execution of remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm], 4 attempt(s) left
[2013-01-15T17:59:11+00:00] INFO: Retrying execution of remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm], 3 attempt(s) left
[2013-01-15T17:59:19+00:00] INFO: Retrying execution of remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm], 2 attempt(s) left
[2013-01-15T17:59:27+00:00] INFO: Retrying execution of remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm], 1 attempt(s) left
[2013-01-15T17:59:34+00:00] INFO: Retrying execution of remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm], 0 attempt(s) left
Error executing action create
on resource 'remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm]'
404 "Not Found"
38: remote_file "#{Chef::Config[:file_cache_path]}/epel-release-#{epel}.noarch.rpm" do
39: source "http://dl.fedoraproject.org/pub/epel/#{major}/#{rpm_arch}/epel-release-#{epel}.noarch.rpm"
40: not_if "rpm -qa | egrep -qx 'epel-release-#{epel}(|.noarch)'"
41: notifies :install, "rpm_package[epel-release]", :immediately
42: retries 5 # We may be redirected to a FTP URL, CHEF-1031.
43: end
44:
remote_file("/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm") do
backup 5
path "/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm"
retries 0
source "http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm"
recipe_name "epel"
action "create"
retry_delay 2
provider Chef::Provider::RemoteFile
cookbook_name :yum
not_if "rpm -qa | egrep -qx 'epel-release-6-7(|.noarch)'"
end
[2013-01-15T17:59:42+00:00] ERROR: Running exception handlers
[2013-01-15T17:59:42+00:00] ERROR: Exception handlers complete
[2013-01-15T17:59:42+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-01-15T17:59:42+00:00] FATAL: Net::HTTPServerException: remote_file[/tmp/vagrant-chef-1/epel-release-6-7.noarch.rpm](yum::epel line 38) had an error: Net::HTTPServerException: 404 "Not Found"
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.