<commit_before>mongodb-dba-course
==================

This repository provides a "basic vagrant" installation for mongodb university, in particular:

* M102: MongoDB for DBAs
* M101JS: MongoDB for Node.js Developers

It will setup MongoDB and NodeJS together with the corresponding drivers necessary to work with MongoDB.

### Setup

* Download and install virtualbox from [https://www.virtualbox.org/](https://www.virtualbox.org/) https://www.virtualbox.org/
* Download and install vagrant from [http://www.vagrantup.com/](http://www.vagrantup.com/) http://www.vagrantup.com/
* Vagrant plugins `vagrant plugin install vagrant-omnibus`
* Install chef/knife `gem install chef bundler knife-solo knife-solo_data_bag librarian librarian-chef`
* Before starting vagrant cd into chef dir. and type `librarian-chef update`. This should install all necessary cookbook dependencies
* To start the vm type `vagrant up`

### Start working

* Access the VM by entering `vagrant ssh`
* NodeJS and MongoDB are prepared and ready to rock :-)<commit_msg>extending docu<commit_after>mongodb-dba-course
==================

This repository provides a "basic vagrant" installation for mongodb university,e in particular:

* M102: MongoDB for DBAs
* M101JS: MongoDB for Node.js Developers

It will setup MongoDB and NodeJS together with the corresponding drivers necessary to work with MongoDB.

### Setup

* Make sure you have a decend ruby version installed e.g. `ruby 1.9.3p484`
* Download and install Virtualbox from [https://www.virtualbox.org/](https://www.virtualbox.org/) https://www.virtualbox.org/
* Download and install vagrant from [http://www.vagrantup.com/](http://www.vagrantup.com/) http://www.vagrantup.com/
* Vagrant plugins `vagrant plugin install vagrant-omnibus`
* Install chef/knife `gem install chef bundler knife-solo knife-solo_data_bag librarian librarian-chef`
* Before starting vagrant cd into chef dir. and type `librarian-chef update`. This should install all necessary cookbook dependencies
* To start the vm type `vagrant up`

### Start working

* Access the VM by entering `vagrant ssh`
* NodeJS and MongoDB are prepared and ready to rock :-)

### Manually Chef run
You can start a manually chef run by executing the following commands:

1. Make sure the vagrant vm is running
2. Open a terminal and cd into the chef directory with `cd chef`
3. Execute knife solo with the vagrant node file by entering: ` knife solo cook vagrant@192.168.33.22 node/vagrant.json --identity-file ../.vagrant.d/insecure_private_key`
4. Enjoy the chef run :-)

### Tested
This was tested on Mac Os X Mavericks (10.9) / Vagrant (1.3.5) / Virtualbox (4.2.18 r88780) / Ruby 1.9.3p484

### MIT License (MIT)
{'fraction_non_alphanumeric': 0.10608308605341246, 'fraction_numerical': 0.019658753709198812, 'mean_word_length': 4.515337423312883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 12, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '841766', 'n_tokens_mistral': 858, 'n_tokens_neox': 796, 'n_words': 316}