Start the CentOS 7.0 virtual machine using Vagrant.
vagrant upCopy the vagrant user's .ssh/ directory into root's home directory to
enable password-less ssh as root.
vagrant ssh
sudo su
cd
cp -r ~vagrant/.ssh .
exit
exitCreate a provisioning/vars.yml file.
cd provisioning
cp vars-template.yml vars.yml
vim vars.yml # Edit as you see fit, passwords in particular.Check your version of vagrant.
vagrant --versionIf your version is lower than 1.7.0 edit the provisioning/hosts file to
look like the below (note the change in the path to the private key).
omeroserver ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user=root ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
Configure the virtual machine with an OMERO 5.2 install using Ansible.
ansible-playbook -i hosts omero_install.ymlAt this point you will need to reload the virtual machine to allow SELinux to be disabled.
vagrant reloadNow you can log into the virtual machine and start omero.
vagrant ssh
su omero
cd # (into the omero home directory)
./OMERO.server/bin/omero admin startMake sure that everything is working as it should.
./OMERO.server/bin/omero admin diagnosticsLog in to the OMERO server using the web client at:
http://127.0.0.1:8080.
Edit the ldap details in provisioning/vars.yml..
Run Ansible.
ansible-playbook -i hosts configure_ldap_authentication.ymlLog into the virtual machine and re-start omero.
vagrant ssh
su omero
cd # (into the omero home directory)
./OMERO.server/bin/omero admin restartThis playbook has been designed to allow several OMERO servers to point at the same root of a mounted file storage.
For example using the default variables with the Vagrant virtual machine
provided in this repository results in the data directory
/omero_data/vagrant-centos7/OMERO/. The playbook then creates a symbolic
link to this directory from /OMERO.
To configure this setup modify the variables omero_data_mount and
omero_data_dir.