<commit_before>Varying Vagrant Vagrants
========================

My (@jeremyfelt) Assorted (?) Vagrant Configs

### So...
I'm still learning this [Vagrant](http://vagrantup.com) stuff, so take anything I say or put into this repo right now with a huge grain of salt.

But, I think this actually works.

### How?
Start with OS X, then...

1. First install [VirtualBox](https://www.virtualbox.org/wiki/Downloads). This is the magic that helps the magic behind Vagrant run. I will have you know that I had to uninstall my previous version of VirtualBox and install with the latest before I was able to get Vagrant to work. Results will vary.
1. Download and install [Vagrant 1.0.5](http://downloads.vagrantup.com/tags/v1.0.5), you will now have access to the `vagrant` command via whatever terminal you use.
1. Clone this repo onto your machine.
    * `git clone git://github.com/jeremyfelt/varying-vagrant-vagrants.git`
1. Poke around and modify the files to fit your needs.
    * `precise/VagrantFile` requires some path changes as you probably don't have a jeremyfelt in your Users path.
    * The bridge setting in `precise/VagrantFile` could be wrong if your Mac's wifi card is not on `en0`. If so, remove everything after the comma on that line - `config.vm.network :bridge` - you'll just need to choose a prompt during the build.
    * Move `server-conf/create-dbs.sql.sample` to `server-conf/create-dbs.sql` and edit it to add whichever `CREATE DATABASE` and `GRANT ALL PRIVILEGES` statements you want to run on startup to prepare mysql for SQL imports (see next bullet).
    * Have any SQL files that should be imported in the `server-conf/db-dumps/` directory and named as `db_name.sql`. The `import-sql.sh` script will run automatically when the VM is built and import these databases into the new mysql install as long as the proper databases have already been created via the previous step's SQL.
    * Check out the example nginx in `server-conf/sites` and create any other site specific configs you think should be available on server start. The web directory is `/srv/www/` and default configs are provided for a basic WordPress setup.
    * Other stuff. Familiarize and all that.
1. Go to the `precise` directory and type `vagrant up`, magic should happen.
1. After a minute or few, all packages will be installed and you'll be greeted with an `ifconfig` result. This all depends on whether your network serves DHCP and I probably should have covered that in a previous step, but next time. Take the IP address that makes the most sense (i.e. the one that is similar to your computer's) and use it in your local `/etc/hosts` file to setup any domains that you expect to be served with nginx.
1. Start using your sites!
1. Or... the more fun part... dig around in your new server by typing `vagrant ssh`

### Feedback?
Let me have it! If you have tips that I need to know, send them my way at [@jeremyfelt](http://twitter.com/jeremyfelt) or find me in [other ways](http://jeremyfelt.com).
<commit_msg>Updated README with a 'What do you get?' section<commit_after>Varying Vagrant Vagrants
========================

My (@jeremyfelt) Assorted (?) Vagrant Configs

### So...
I'm still learning this [Vagrant](http://vagrantup.com) stuff, so take anything I say or put into this repo right now with a huge grain of salt.

But, I think this actually works.

### How?
Start with OS X, then...

1. First install [VirtualBox](https://www.virtualbox.org/wiki/Downloads). This is the magic that helps the magic behind Vagrant run. I will have you know that I had to uninstall my previous version of VirtualBox and install with the latest before I was able to get Vagrant to work. Results will vary.
1. Download and install [Vagrant 1.0.5](http://downloads.vagrantup.com/tags/v1.0.5), you will now have access to the `vagrant` command via whatever terminal you use.
1. Clone this repo onto your machine.
    * `git clone git://github.com/jeremyfelt/varying-vagrant-vagrants.git`
1. Poke around and modify the files to fit your needs.
    * `precise/VagrantFile` requires some path changes as you probably don't have a jeremyfelt in your Users path.
    * The bridge setting in `precise/VagrantFile` could be wrong if your Mac's wifi card is not on `en0`. If so, remove everything after the comma on that line - `config.vm.network :bridge` - you'll just need to choose a prompt during the build.
    * Move `server-conf/create-dbs.sql.sample` to `server-conf/create-dbs.sql` and edit it to add whichever `CREATE DATABASE` and `GRANT ALL PRIVILEGES` statements you want to run on startup to prepare mysql for SQL imports (see next bullet).
    * Have any SQL files that should be imported in the `server-conf/db-dumps/` directory and named as `db_name.sql`. The `import-sql.sh` script will run automatically when the VM is built and import these databases into the new mysql install as long as the proper databases have already been created via the previous step's SQL.
    * Check out the example nginx in `server-conf/sites` and create any other site specific configs you think should be available on server start. The web directory is `/srv/www/` and default configs are provided for a basic WordPress setup.
    * Other stuff. Familiarize and all that.
1. Go to the `precise` directory and type `vagrant up`, magic should happen.
1. After a minute or few, all packages will be installed and you'll be greeted with an `ifconfig` result. This all depends on whether your network serves DHCP and I probably should have covered that in a previous step, but next time. Take the IP address that makes the most sense (i.e. the one that is similar to your computer's) and use it in your local `/etc/hosts` file to setup any domains that you expect to be served with nginx.
1. Start using your sites!
1. Or... the more fun part... dig around in your new server by typing `vagrant ssh`

### What do you get?
A bunch of stuff!

1. Ubuntu 12.04 (Precise Pangolin)
2. nginx 1.19
3. mysql 5.5
4. php 5.3.10 with php-fpm
6. curl
7. vim
8. git

### Feedback?
Let me have it! If you have tips that I need to know, send them my way at [@jeremyfelt](http://twitter.com/jeremyfelt) or find me in [other ways](http://jeremyfelt.com).

{'fraction_non_alphanumeric': 0.08412417564741836, 'fraction_numerical': 0.00804246421103426, 'mean_word_length': 3.869224745497259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, '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': '2692166', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1750, 'n_words': 946}