Vagrant
You can also launch a copy of OneOps using Vagrant. Vagrant is a orchestration tool from HashiCorp used to create lightweight and portable development environments. This is particularly useful if you want to create a OneOps installation on a laptop that you will carry with you. You can also create your own OneOps development environment using Vagrant.
Note
Download the latest version of VirtualBox from the Oracle VirtualBox website (https://www.virtualbox.org/wiki/Downloads) and install it. Also download and install the latest version of Vagrant from the Vagrant website (https://www.vagrantup.com/downloads.html).
Also install the extension packages for VirtualBox. These install instructions will work on the Mac or Linux. Currently the Vagrant installation does not work on Windows. Go ahead and clone the OneOps setup repository from GitHub:
git clone https://github.com/oneops/setup cd setup/vagrant-centos7
Tip
Before you start the Vagrant install, you can tune your installation to allocate more resources to your OneOps install. By default, your OneOps install will have only 1 CPU and 8 GB memory. If the host machine has more resources available, it is recommended you allocate more resources to your VM too. This will increase the performance of your OneOps installation.
Open Vagrantfile
and find the vb.memory
line. It will be set to 8 GB. Increase it to about half the size of your host operating system. Below that, add the line vb.cpus
and give it a value of about half the number of CPUs available to your host machine. Make sure you tune it this way only if nothing else is running on the host machine. Reduce the allocation if you have other things running too. You are now ready to run vagrant up
. Vagrant up starts to build OneOps for you. It does so by executing the following steps.
- Vagrant imports CentOS box and creates a centos virtual machine to build a OneOps installation on top of.
- It runs
oneops-jreqs.sh
, which installs java, postgres, vim and git among other things. - It runs
install-es.sh
, which installselasticsearch
. - It runs
install-rvm.sh
, which installs the current stable version of Ruby. - It runs
install-ruby.sh
, which installs Ruby on Rails and other modules required to run the OneOps frontend - It runs
install-logstash.sh
, which installs and configureslogstash
. - Finally it runs
oo-setup.sh
, which clones thedev-tools
repository and runs all the scripts in the setup-scripts directory to actually set up OneOps.
After the installation is done you will see a message like the following.
However, in a vagrant install, the port actually gets mapped on port 9090
of the host OS. So, if you want to try your new OneOps installation, you should connect to
http://localhost:9090
.