Homestead is amazing but I need something more inline with the servers we work on.
The scripts that follow are like the ones we use to buidl the servers, nginx etc. So we can know that our local VM is setup the same way.
Some feature missing for now
Here is an example of a workflows
Download and install VM (Virtual box or VMWare) Setup it up per the notes below Once in there run, only needed once, the ansible scripts to set it all up
Finally when you want to work on a site
Using visudo add
alfrednutile ALL=(ALL) NOPASSWD:ALL
Of course @TODO alfrednutile === ubuntu like our servers
Under Edit in the top menu of the VM Software (VMWare) or in settings of the VM (VMWare) there is Virtual Network Manager there you will see Bridged, then just make sure it references your Wireless card.
In the menu of VMWare VM click Install Tools
then in the vm mkdir /mnt/foo
then mount /dev/cdrom /mnt/foo
cp /mnt/foo/VMWareTools* /opt
tar xzvf VMWare*
then cd vmware-tools-distrib
Click on the VM (After you install the VM Tools)
And click Settings-->Options-->Shared Folder
This will be in your linux box (maybe need to reboot) under /mnt/hsgf
Then I symlink /mnt/msgf/Users/ubuntu/Code ~/Code
so it is in my home folder.
@TODO write this up
http://www.sysprobs.com/how-to-edit-host-file-in-windows-8-1-8
On the VM
Setup 2.x version
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
As noted above there are several files this is how your run each one, except the create_site.yml
since
that one needs more settings.
cd ansible and follow the below items
ansible-playbook -i "local," -c local ubuntu.yml
It is root/password so just keep that in mind as you go
The goal is to create a defail nginx site.
This setup assumes you have downloaded your github repo in the the /home/username/Code/repo_name
folder
ansible-playbook -i "local," -c local create_site.yml --extra-vars="sitefolder=foo2 sitename=baz.dev"
Will build our your site, database, setup your internal hosts file.
Local DynamoDB Dev Setup
Move most of this into vagrant Set around a generic user name Get Folder Sharing setup Better sharing of ssh keys