Vagrant box, with Ansible provisioning to setup new eZ Publish project.
You need to have following installed:
If you are running Windows (with or without SSD), or Linux/Mac OS X with SSD , copy or symlink Vagrantfile-nfs
to Vagrantfile
.
If you are running Linux/Mac OS X without SSD, copy Vagrantfile-reverse-nfs
to Vagrantfile
.
DO NOT COMMIT THE Vagrantfile
.
Notice that V in Vagrantfile
is case sensitive.
The local development is meant to be used in a vagrant provisioned box.
The provisioner for the project is ansible.
Once you have the prerequisites setup, you can run the
vagrant up
from you terminal to start the process up.
If you do not see an error message, go get yourself a cup of coffee or your favorite beverage, you deserve it.
If you start seeing the connection timeout after adding of the private key
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
You should open up the Virtualbox, click the vm running (name should be along the lines of 4cinc-thinkfasttoys....) and reset it (on OSX it is cmd+t). This is due to some weird bug somewhere on intersection of vagrant, virtualbox and this ubuntu cloud image. After the initial virtual machine build, you will not need to use this.
IMPORTANT
If vagrant starts complaining about locale and crashes the provisioning, in /etc/ssh/ssh_config (or equivalent) comment out
SendEnv LANG LC_*
Shell script will run from within the vm to provision the setup
ansible-playbook -i provisioning/inventories/production provisioning/production.yml -u ubuntu --sudo