Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

drupaldevdays/provisioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Dev Days 2016 Provisioning

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.

Requirements

In order to start working you must:

  1. Install vagrant. More information on how to do that here: https://www.vagrantup.com/downloads.html

  2. Install virtualbox. More information on how to do that here: https://www.virtualbox.org/wiki/Downloads

  3. Install ansible. More information on how to do that here: http://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine

Installation

  1. Create a working directory, say /path/to/ddd

  2. Clone https://github.com/drupaldevdays/provisioning (or your fork of it) into your working directory(e.g. /path/to/ddd)

  3. 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
    
  4. 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
  5. Add to your host machine's /etc/hosts the following line

    192.168.88.88 milan2016.drupaldays.loc
    
  6. 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
  7. 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.

  8. Start Vagrant:

    vagrant up --provider=virtualbox

    You can also specify other providers such as vmware or parallels in case you have them installed on your local system.

  9. From now on you should be able to visit http://milan2016.drupaldays.loc/ in your browser

  10. 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_keys and add the following line to your Vagrantfile:

    config.ssh.private_key_path = '~/.ssh/id_rsa'

Contributing

The development follows the standard Github's Pull Request flow. More information here: https://help.github.com/articles/using-pull-requests/

About

Drupal Developer Days - Milano 2016 - Provisioning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •