jamestyj / vagrant-mongodb Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently the EBS volumes must be deleted manually after the EC2 instance terminates. Will be good to add an option that does this automatically.
The underlying chef-ebs only implements the setting of read-ahead size for RAID volumes.
Vagrant support for Berkshelf is being deprecated, so we should move to librarian-chef.
We've already done the conversion in a Rackspace fork of your repo and will be contributing it back.
Also, I'll be attempting to modify to have 'vagrant-mongodb' work with Rackspace, OpenStack, Virtualbox & AWS at the same time.
After creating the instance chef errored out:
[default] Waiting for instance to become "ready"...
[default] Waiting for SSH to become available...
[default] Machine is booted and ready for use!
[default] Rsyncing folder: /Users/gianfranco/github/jamestyj/vagrant-mongodb/ => /vagrant
[default] Rsyncing folder: /Users/gianfranco/github/jamestyj/vagrant-mongodb/cookbooks/ => /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Rsyncing folder: /Users/gianfranco/github/jamestyj/vagrant-mongodb/my_cookbooks/ => /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[default] Installing Chef 11.8.2 Omnibus package...
...
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
[root@XXXec2-user]# export TERM=vt100
mp/vagrant-chef-1/dna.json user]# chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /t
[2014-01-07T14:45:48+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.8.2
[2014-01-07T14:45:48+00:00] INFO: *** Chef 11.8.2 ***
[2014-01-07T14:45:48+00:00] INFO: Chef-client pid: 2378
[2014-01-07T14:45:49+00:00] INFO: Setting the run_list to ["recipe[utils]", "recipe[mosh]", "recipe[ebs]", "recipe[mongodb::10gen_repo]", "recipe[mongodb]"] from JSON
[2014-01-07T14:45:49+00:00] INFO: Run List is [recipe[utils], recipe[mosh], recipe[ebs], recipe[mongodb::10gen_repo], recipe[mongodb]]
[2014-01-07T14:45:49+00:00] INFO: Run List expands to [utils, mosh, ebs, mongodb::10gen_repo, mongodb]
[2014-01-07T14:45:49+00:00] INFO: Starting Chef Run for XXX.eu-west-1.compute.internal
[2014-01-07T14:45:49+00:00] INFO: Running start handlers
[2014-01-07T14:45:49+00:00] INFO: Start handlers complete.
Compiling Cookbooks...
[2014-01-07T14:45:50+00:00] WARN: CentOS doesn't provide mongodb, forcing use of 10gen repo
================================================================================
Recipe Compile Error
================================================================================
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe epel for cookbook yum
[2014-01-07T14:45:50+00:00] ERROR: Running exception handlers
[2014-01-07T14:45:50+00:00] ERROR: Exception handlers complete
[2014-01-07T14:45:50+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated
[2014-01-07T14:45:50+00:00] ERROR: could not find recipe epel for cookbook yum
[2014-01-07T14:45:50+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[root@XXX ec2-user]# exit
logout
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.
An error occurred while executing the action on the 'default'
machine. Please handle this error then try again:
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
** Vagrant took 170s
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
/var/chef/cache/chef-stacktrace.out
Generated at 2014-01-07 14:45:50 +0000
Chef::Exceptions::RecipeNotFound: could not find recipe epel for cookbook yum
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/cookbook_version.rb:226:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/dsl/include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/mosh/recipes/package.rb:37:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/cookbook_version.rb:237:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:132:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:131:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:131:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/dsl/include_recipe.rb:26:in `include_recipe'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/mosh/recipes/default.rb:20:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/cookbook_version.rb:237:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:151:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:139:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:137:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:137:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context/cookbook_compiler.rb:74:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/run_context.rb:86:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:250:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:498:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:199:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/client.rb:193:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:208:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:221:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:213:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application/solo.rb:213:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/application.rb:66:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'
owner and expiry-on or any other custom tag
Currently the "MongoDB" security group must be manually created, with the default MongoDB and SSH ports open.
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.