<commit_before># devbox
A small debian wheezy based vagrant box, provisioned with ansible

## What's inside?
devbox comes with a full web environment in mind.
Namely it has following modules preinstalled:

* nginx
* php-fpm
* MariaDb
* phpmyadmin
* phptools (phpunit, phploc, ...)

Also there's a separate user to run your web stuff (wwwdev) and a basic set of tool scripts for working with git or linking nginx configs from your repository directory to sites-enabled and much more :-)

## Prerequisites
* Vagrant: Download and run setup
* Virtualbox: Download and run setup
* Python Installation: Download and run setup

Finally install the Python package installer and use it to install some additional packages by running

    sudo easy_install pip
    sudo pip install paramiko PyYAML jinja2 httplib2

Then go to a directory of your choice where you want to place the ansible installation and run

    git clone https://github.com/ansible/ansible.git
    cd ./ansible
    source ./hacking/env-setup

## Finally the devbox configuration
Now go to the parent directory where you want your virtual machine to be placed and clone the repo
Clone with --recursive to auto-init all submodules and enjoy the flow...

    git clone --recursive https://bitbucket.org/BenjaminRau/mam-devbox.git mam-devbox

If you want to use other submodules you will have to clone without --recursive and after you modifies .gitmodules run

	cd mam-devbox
	git submodule update --init

Its time to do some customizations for your local environment. First go to the directory where you cloned the repository:

    cd mam-devbox

Then you will have to add your custom informations in the following file:

    ansible/global_vars/devbox.yml

In there, you can customize the created devbox with your own domain, vm and git user and ssh keys...

Note: If you dont know - you obtain your ssh public key by running:

    cat ~/.ssh/id_rsa.pub

## First start
If youre not already there go to the cloned repository and simply run this:

    ./up

This equals the vagrant up command but also sets a environment variable to suppress ansible's cowsay and provides a more readable output of the first provisioning. If you need provisioning later on, just vagrant provision or use the ./provision script withouth the cowsay.

## Connecting to the box
You've got two options:

* vagrant ssh, su root (password is "<PASSWORD>") and then su wwwdev
* ssh wwwdev@192.168.127.12 (without prompt because we added our public key earlier for password-less ssh´ing)

I'd suggest you add something like

    192.168.56.10 dev.local

to ease your access to the virtual machine. The "dev.local" part is the default address your nginx installation will listen to.<commit_msg>[TASK] Update readme<commit_after># typo3-devbox
A small debian wheezy based vagrant box, provisioned with ansible which rolls out a TYPO3 6.2 setup - ready to login

## What's inside?
devbox comes with a full web environment in mind.
Namely it has following modules preinstalled:

* nginx
* php-fpm
* MariaDb
* phpmyadmin
* phptools (phpunit, phploc, ...)

Also there's a separate user to run your web stuff (wwwdev) and a basic set of tool scripts for working with git or linking nginx configs from your repository directory to sites-enabled and much more :-)

## Believe it or not but...

If youve used this typo3-devbox before and all prerequisites are fulfilled and there is no need for you to customize the settings but rather want a working typo3 setup _immediately_, then just run this:

	git clone --recursive https://github.com/benjaminrau/typo3-devbox && cd typo3-devbox && ./up

Open your browser and enter http://dev.local/typo3 - and enjoy.

## Prerequisites
* Vagrant: Download and run setup
* Virtualbox: Download and run setup
* Python Installation: Download and run setup

Finally install the Python package installer and use it to install some additional packages by running

    sudo easy_install pip
    sudo pip install paramiko PyYAML jinja2 httplib2

Then go to a directory of your choice where you want to place the ansible installation and run

    git clone https://github.com/ansible/ansible.git
    cd ./ansible
    source ./hacking/env-setup

## Finally the devbox configuration
Now go to the parent directory where you want your virtual machine to be placed and clone the repo
Clone with --recursive to auto-init all submodules and enjoy the flow...

    git clone --recursive https://bitbucket.org/BenjaminRau/typo3-devbox.git typo3-devbox

If you want to use other submodules you will have to clone without --recursive and after you modifies .gitmodules run

	cd typo3-devbox
	git submodule update --init

Its time to do some customizations for your local environment. First go to the directory where you cloned the repository:

    cd typo3-devbox

Then you will have to add your custom informations in the following file:

    ansible/global_vars/devbox.yml

In there, you can customize the created devbox with your own domain, vm and git user and ssh keys...

Note: If you dont know - you obtain your ssh public key by running:

    cat ~/.ssh/id_rsa.pub

## First start
If youre not already there go to the cloned repository and simply run this:

    ./up

This equals the vagrant up command but also sets a environment variable to suppress ansible's cowsay and provides a more readable output of the first provisioning. If you need provisioning later on, just vagrant provision or use the ./provision script withouth the cowsay.

## Connecting to the box
You've got two options:

* vagrant ssh, su root (password is "<PASSWORD>") and then su wwwdev
* ssh wwwdev@192.168.127.12 (without prompt because we added our public key earlier for password-less ssh´ing)

I'd suggest you add something like

    192.168.56.11 dev.local

to ease your access to the virtual machine. The "dev.local" part is the default address your nginx installation will listen to.
{'fraction_non_alphanumeric': 0.053067432820686156, 'fraction_numerical': 0.009971269224269056, 'mean_word_length': 3.870781893004115, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 4, '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': '1904953', 'n_tokens_mistral': 1703, 'n_tokens_neox': 1566, 'n_words': 857}