forked from shekar73/designpatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
38 lines (31 loc) · 1.21 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|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
config.vm.box = "ubuntu-cloud-images/trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
# VM tuning
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
vb.memory = 2048
vb.cpus = 4
end
# Forward server ports from guest to host
config.vm.network "forwarded_port", guest: 4000, host: 4000
# Shared folders with NFS
config.vm.network :private_network, type: "dhcp"
config.vm.synced_folder '.', '/vagrant', nfs: true
config.vm.synced_folder "salt/roots/", "/srv/salt", nfs: true
# SSH agent forwarding
config.ssh.forward_agent = true
# Provision with salt
config.vm.provision :salt do |salt|
salt.bootstrap_options = "-P"
salt.minion_config = "salt/minion"
salt.run_highstate = true
salt.verbose = true
end
end