Skip to content

Instantly share code, notes, and snippets.

@dimzak
Created August 18, 2016 16:25
Show Gist options
  • Save dimzak/63d7609828f57082e8a0b70f9c0107ba to your computer and use it in GitHub Desktop.
Save dimzak/63d7609828f57082e8a0b70f9c0107ba to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "sloth" do |sloth|
# set to false, if you do NOT want to check the correct VirtualBox Guest Additions version when booting this box
if defined?(VagrantVbguest::Middleware)
sloth.vbguest.auto_update = true
end
sloth.vm.box = "centos/7"
sloth.vm.network :forwarded_port, guest: 5601, host: 5601
sloth.vm.network :forwarded_port, guest: 9200, host: 9200
sloth.vm.network :forwarded_port, guest: 9300, host: 9300
sloth.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpus", "2", "--memory", "2048"]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment