This repository is based on phansible and geerlingguy's drupal-vm and contains the ansible configuration to setup the virtual machine to use for developing on the Drupal Dev Days 2016's website and provision the development, staging and production machines.
In order to start working you must:
-
Install vagrant. More information on how to do that here: https://www.vagrantup.com/downloads.html
-
Install virtualbox. More information on how to do that here: https://www.virtualbox.org/wiki/Downloads
-
Install ansible. More information on how to do that here: http://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine
-
Create a working directory, say
/path/to/ddd -
Clone https://github.com/drupaldevdays/provisioning (or your fork of it) into your working directory(e.g. /path/to/ddd)
-
Clone https://github.com/drupaldevdays/website (or your fork of it) into your working directory(e.g. /path/to/ddd).
You should now have the following folder structure:
ddd ├── provisioning └── website -
If you are using ubuntu as your host operating system(i.e. your physical machine), install NFS by typing:
sudo apt-get install nfs-common nfs-kernel-server
-
Add to your host machine's
/etc/hoststhe following line192.168.88.88 milan2016.drupaldays.loc -
Add the SSH key you have tied to GitHub to the authentication agent
key_file=~/.ssh/id_rsa [[ -z $(ssh-add -L | grep $key_file) ]] && ssh-add $key_file
-
Run ansible-galaxy to install the needed ansible dependencies:
ansible-galaxy install -r ansible/requirements.yml --force --ignore-errors
Remember that depending on your system you might need to run the command using sudo.
Please note that this command tends to fail some downloads every now and then. Should that happen you might need to repeat such command again or manually install the dependencies that failed to download or install.
-
Start Vagrant:
vagrant up --provider=virtualbox
You can also specify other providers such as
vmwareorparallelsin case you have them installed on your local system. -
From now on you should be able to visit http://milan2016.drupaldays.loc/ in your browser
-
Should authentication failures happen while the virtual machine is booting, try to start it from the UI(e.g. the virtualbox gui app). Once you're in, append your public key to
/home/vagrant/.ssh/authorized_keysand add the following line to your Vagrantfile:config.ssh.private_key_path = '~/.ssh/id_rsa'
The development follows the standard Github's Pull Request flow. More information here: https://help.github.com/articles/using-pull-requests/