-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
29 lines (24 loc) · 914 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "debian/jessie64"
#config.hostmanager.enabled = true
config.vm.provider "virtualbox" do |vb|
vb.memory = 512
vb.cpus = 1
end
config.vm.define :server do |sub_config|
sub_config.vm.network :private_network, ip: "192.168.1.2",
virtualbox__intnet: "autoconfig"
sub_config.vm.hostname = 'server'
sub_config.vm.network :forwarded_port, guest: 80, host: 8888
sub_config.vm.network :forwarded_port, guest: 3306, host: 33306
sub_config.vm.provision :shell, path: "vagrant_bootstrap.sh", args: "server"
end
config.vm.define :client do |sub_config|
sub_config.vm.network :private_network, ip: "192.168.1.20",
virtualbox__intnet: "autoconfig"
sub_config.vm.hostname = 'client'
sub_config.vm.provision :shell, path: "vagrant_bootstrap.sh", args: "client"
end
end