This Vagrant file and accompanying Ansible playbook will get you two Ubuntu based Virtual machines that can be used for testing. One of the virtual machines will be called control
and the other omekadevvm
You will need to have Vagrant and Virtualbox installed on your computer. On Microsoft Windows make sure that the network settings on Virtualbox are set to bridged network otherwise your control machine will not see the digitalscvm. In addition to the software above we will install the babun
Important to remember where you saved the repo as it will matter for the steps below. For documentation purposes let us say we cloned the repository into /Users/dewey/Documents/
- Launch your babun shell window and type the following sans quotes.
pwd
- which should be your home.
cd /c/Users/
- The go into your users directory. In our case the user is 'dewey' so.
cd dewey
- You recall we cloned the repository in the Documents directory.
cd Documents
- Change into the cloned directory
cd digitalsc
vagrant up
- Then log into the control virtual machine with the following
vagrant ssh control
- You will then have to generate your ssh-keys.
ssh-keygen
You do not need to save a password for the generated key.
- Copy your keys from the control virtual machine to the digitalscvm with the following command
ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.15.21
Your password is the default vagrant password of 'vagrant'
- You are now ready to run your ansible playbook.
Review the contents of the vars.TEMPLATE.yml
change the password information. Copy this file into a new one called vars.yml
cp vars.TEMPLATE.yml vars.yml
run
ansible-playbook omekaserver.yml -b
- This will install omeka on the other virtual machine. You can exit from this computer with
exit
- To complete the installation
log into the digitalscvm with
vagrant ssh digitalscvm
- Navigate to the omeka directory and enter the database information.
cd /var/www/html/omeka-2.3
edit the db.ini
file
You can now exit the vm
- Look at the Development Documentation on how to make changes.