<commit_before># vagrant_generic_devstack

This is a generic vagrant box (ubuntu) with php, mysql, composer and nginx and preconfigured vhosts for:
 - Symfony2
 - Zend Framework 1

- [Recommended Plugins](#recommended-plugins)
- [How to use](#how-to-use)
- [Contributing](#contributing)

## Recommended Plugins

The config makes use of but does not require:
 - vagrant-cachier (Package file caching)
 - vagrant-hostmanager (/etc/hosts management)

To update vbox guest extensions automatically you can use:
 - vagrant-vbguest

## How to use

Just do a "vagrant up".
r10k will first bootstrap your local Puppet modules and after that the provisioning process will be started.
This might not work if you are using non-Virtualbox providers.

### Note on git-subtree
`git-subtree` was first added to git with 1.7.11 in May 2012. If it isn't available on your machine see
the [installation instructions](https://github.com/git/git/blob/master/contrib/subtree/INSTALL).
All git subtree commands accept a `--squash` flag to squash the subtree commits into one commit.

### Adding to your project
```
git subtree add --prefix vagrant git@github.com:Mayflower/vagrant_generic_devstack master
./vagrant/bootstrap.sh
```

### Configuration
All configuration happens in the `devstack.yaml` which gets created when running the bootstrap above.

**TODO** Document devstack.yaml possibilities<commit_msg>Add local_devstack to readme<commit_after># vagrant_generic_devstack

This is a generic vagrant box (ubuntu) with php, mysql, composer and nginx and preconfigured vhosts for:
 - Symfony2
 - Zend Framework 1

- [Recommended Plugins](#recommended-plugins)
- [How to use](#how-to-use)
- [Contributing](#contributing)

## Recommended Plugins

The config makes use of but does not require:
 - vagrant-cachier (Package file caching)
 - vagrant-hostmanager (/etc/hosts management)

To update vbox guest extensions automatically you can use:
 - vagrant-vbguest

## How to use

Just do a "vagrant up".
r10k will first bootstrap your local Puppet modules and after that the provisioning process will be started.
This might not work if you are using non-Virtualbox providers.

### Note on git-subtree
`git-subtree` was first added to git with 1.7.11 in May 2012. If it isn't available on your machine see
the [installation instructions](https://github.com/git/git/blob/master/contrib/subtree/INSTALL).
All git subtree commands accept a `--squash` flag to squash the subtree commits into one commit.

### Adding to your project
```
git subtree add --prefix vagrant <EMAIL>:Mayflower/vagrant_generic_devstack master
./vagrant/bootstrap.sh
```

### Configuration
All configuration happens in the `devstack.yaml` which gets created when running the bootstrap above.
You may add a `local_devstack.yaml` in which you can overwrite configuration in devstack.yaml e.g. when using
different IP or box name.

**TODO** Document devstack.yaml possibilities
{'fraction_non_alphanumeric': 0.0838466803559206, 'fraction_numerical': 0.008213552361396304, 'mean_word_length': 4.653771760154739, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2156559', 'n_tokens_mistral': 897, 'n_tokens_neox': 824, 'n_words': 351}