-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·56 lines (47 loc) · 2.03 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright 2019 Manuel Schmidt
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Published at https://github.com/mschmnet/elk-docker-vagrant/
#
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
config.vm.box_check_update = false
# Port 5601 used by Kibana
config.vm.network "forwarded_port", guest: 443, host: 5601, host_ip: "127.0.0.1"
config.vm.synced_folder "M:\\down\\", "/down"
config.vm.synced_folder "M:\\data\\elk\\", "/data/elk"
config.vm.synced_folder "M:\\data\\elk_backup\\", "/data/elk_backup"
config.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = 8192
end
# config.disksize requires the the vagrant-disksize plugin
# Install with vagrant plugin install vagrant-disksize
config.disksize.size = '200GB'
# Enables execution behind a proxy. It can be used setting the environment variables
# VAGRANT_HTTP_PROXY and VAGRANT_HTTPS_PROXY in the shell
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = nil
config.proxy.https = nil
config.proxy.no_proxy = "localhost,127.0.0.1"
end
# Requires vagrant 2.2.1 at least: https://github.com/hashicorp/vagrant/pull/10399
config.vm.provision "shell", privileged: false, path: "provision.sh", reset: true
config.vm.provision "shell", privileged: false, path: "provision-docker.sh"
end