<commit_before>ansible-vagrant-wp
==================
Deploy a WordPress development environment to your local machine using Vagrant, then deploy dev, test and production instances to EC2 using Ansible.

Deploys Ubuntu 12.04 with MySQL, php-fpm and Nginx.

Based on <https://github.com/Varying-Vagrant-Vagrants/VVV>

##Local Development using Vagrant
1. Install VirtualBox <https://www.virtualbox.org/> and Vagrant <http://www.vagrantup.com/>
1. Install Vagrant hosts updater plugin:
<https://github.com/cogitatio/vagrant-hostsupdater>
1. Provision Ubuntu 12.04 local WP server:
    
     `vagrant up` 
1. Install WordPress using Ansible Playbook:
     
	 `ansible-playbook -i dev cms.yml`
1. Visit running instance at <http://cms.local>           
      
   
## Deploy to EC2
1. Provision EC2 instance:
   ansible-playbook -i dev ec2-provision.yml 
1. Install WordPress on EC2 instance using Ansible Playbook:

	 `ansible-playbook -i dev cms.yml`           
1. Visit running instance at <http://cms.dev>           

<commit_msg>Notes about AWS private vars<commit_after>ansible-vagrant-wp
==================
Deploy a WordPress development environment to your local machine using Vagrant, then deploy dev, test and production instances to EC2 using Ansible.

Deploys Ubuntu 12.04 with MySQL, php-fpm and Nginx.

Based on <https://github.com/Varying-Vagrant-Vagrants/VVV>

##Local Development using Vagrant
1. Install VirtualBox <https://www.virtualbox.org/> and Vagrant <http://www.vagrantup.com/>
1. Install Vagrant hosts updater plugin:
<https://github.com/cogitatio/vagrant-hostsupdater>
1. Provision Ubuntu 12.04 local WP server:
    
     `vagrant up` 
1. Install WordPress using Ansible Playbook:
     
	 `ansible-playbook -i dev cms.yml`
1. Visit running instance at <http://cms.local>           
      
   
## Deploy to EC2
1. Rename aws_private_vars.yml to .aws_private_vars.yml, populate with your AWS access key, secret key and keypair name.  Dot file with your private AWS credentials won't get checked in :-)
1. Provision EC2 instance:

   `ansible-playbook -i dev ec2-provision.yml` 

1. Install WordPress on EC2 instance using Ansible Playbook:

	 `ansible-playbook -i dev cms.yml`           

1. Visit running instance at <http://cms.dev>           


{'fraction_non_alphanumeric': 0.10370697263901148, 'fraction_numerical': 0.018976169461606355, 'mean_word_length': 3.3849129593810443, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '36685', 'n_tokens_mistral': 764, 'n_tokens_neox': 703, 'n_words': 245}