官术网_书友最值得收藏!

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.

  1. Vagrant imports CentOS box and creates a centos virtual machine to build a OneOps installation on top of.
  2. It runs oneops-jreqs.sh, which installs java, postgres, vim and git among other things.
  3. It runs install-es.sh, which installs elasticsearch.
  4. It runs install-rvm.sh, which installs the current stable version of Ruby.
  5. It runs install-ruby.sh, which installs Ruby on Rails and other modules required to run the OneOps frontend
  6. It runs install-logstash.sh, which installs and configures logstash.
  7. Finally it runs oo-setup.sh, which clones the dev-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 .

主站蜘蛛池模板: 敦化市| 新民市| 远安县| 玉门市| 怀仁县| 通辽市| 化德县| 左云县| 房产| 台北市| 林口县| 东阳市| 湖口县| 台前县| 肇源县| 当雄县| 红原县| 台山市| 宜春市| 调兵山市| 四平市| 永善县| 盈江县| 衡南县| 黎城县| 沙坪坝区| 含山县| 镇江市| 隆回县| 菏泽市| 宜宾市| 香港 | 阿拉善右旗| 昌邑市| 珠海市| 盐池县| 怀宁县| 临沧市| 习水县| 那曲县| 中方县|