-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile_drytri
46 lines (32 loc) · 1.35 KB
/
Vagrantfile_drytri
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
# -*- 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.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 1
end
config.vm.box = "landregistry/centos-beta"
# config.vm.box = "hashicorp/precise64"
config.vm.network "public_network", :bridge => '300Mbps Wireless USB Adapter'
# config.vm.network "private_network"
# config for vagrant-vbguest plugin
# set auto_update to false, if you do NOT want to check the correct
# additions version when booting this machine
# config.vbguest.auto_update = false
# config.vm.network "public_network", ip: "192.168.1.201"
# default router
# config.vm.provision "shell",
# run: "always",
# inline: "route add default gw 192.168.1.1"
# delete default gw on eth0
# config.vm.provision "shell",
# run: "always",
# inline: "eval `route -n | awk '{ if ($8 ==\"enp0s3\" && $2 != \"0.0.0.0\") print \"route del default gw \" $2; }'`"
config.vm.network "forwarded_port", guest: 5001, host: 5004
config.vm.network :forwarded_port, guest: 80, host: 10080
config.vm.network :forwarded_port, guest: 9200, host: 9200
config.vm.hostname ="guide"
config.vm.provision "shell", path: "centos_provision.sh"
end