forked from comperiosearch/vagrant-elk-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (26 loc) · 1.16 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- 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|
# set to false, if you do NOT want to check the correct VirtualBox Guest Additions version when booting this box
if defined?(VagrantVbguest::Middleware)
config.vbguest.auto_update = true
end
config.vm.box = "puppetlabs/ubuntu-14.04-64-puppet"
config.vm.network :forwarded_port, guest: 5601, host: 5601
config.vm.network :forwarded_port, guest: 9200, host: 9200
config.vm.network :forwarded_port, guest: 9300, host: 9300
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpus", "2", "--memory", "2048"]
end
config.vm.provider "vmware_fusion" do |v, override|
## the puppetlabs ubuntu 14-04 image might work on vmware, not tested?
v.provision "shell", path: 'ubuntu.sh'
v.box = "phusion/ubuntu-14.04-amd64"
v.vmx["numvcpus"] = "2"
v.vmx["memsize"] = "2048"
end
config.vm.provision "shell", path: 'setup.sh'
config.vm.provision "puppet", manifests_path: "manifests", manifest_file: "default.pp"
end