-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vagrantfile
38 lines (33 loc) · 1.05 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Common
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder "salt/roots/", "/srv/salt/"
config.vm.synced_folder "salt/pillar/", "/srv/pillar/"
config.vm.synced_folder "salt/formulas/", "/srv/formulas/"
config.vm.provision :salt do |salt|
salt.bootstrap_options = "-P"
salt.minion_config = "salt/minion"
salt.run_highstate = true
end
# Database
config.vm.define "db" do |db|
db.vm.hostname = "db"
db.vm.network "private_network", ip: "192.168.69.20"
end
# Hoster
config.vm.define "docker" do |docker|
docker.vm.hostname = "docker"
docker.vm.network "private_network", ip: "192.168.69.30"
docker.vm.provider "virtualbox" do |vbox|
vbox.memory = 4096
end
end
# Core product
config.vm.define "core", primary: true do |core|
core.vm.hostname = "core"
core.vm.network "private_network", ip: "192.168.69.10"
core.vm.network "forwarded_port", ip: "127.0.0.1", guest: 3000, host: 3000, protocol: 'tcp'
end
end