-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (24 loc) · 1.02 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
33
34
35
36
# Create a minimal Ubuntu box
Vagrant.require_version ">= 2.1.2"
Vagrant.configure(2) do |config|
# Configure the base box
config.vm.define "ubuntu" do |ubuntu|
# Find the latest images on https://app.vagrantup.com/ubuntu
ubuntu.vm.box = "ubuntu/bionic64"
ubuntu.vm.hostname = "elastic-stack"
ubuntu.vm.network :forwarded_port, guest: 5601, host: 5601
# If you export the box switch to the second line to keep the /elastic-stack/ folder
ubuntu.vm.synced_folder "elastic-stack/", "/elastic-stack/"
#ubuntu.vm.synced_folder "elastic-stack/", "/elastic-stack/", type: "rsync"
end
# Configure the VirtualBox parameters
config.vm.provider "virtualbox" do |vb|
vb.name = "elastic-stack"
vb.customize [ "modifyvm", :id, "--memory", "3072" ]
end
# Configure the box with Ansible
config.vm.provision "ansible_local" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "/elastic-stack/0_install.yml"
end
end