-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
38 lines (30 loc) · 942 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
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_NAME = ENV["SALTLAB"] || "saltlab"
SALT_REPO = ENV["SALT_REPO"] || nil
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.name = BOX_NAME
vb.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.network "private_network", type: "dhcp"
config.ssh.forward_agent = true
if SALT_REPO
config.vm.synced_folder SALT_REPO, "/home/vagrant/salt/"
end
# speed up provisioning by enabling caching
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
config.vm.synced_folder "salt/roots/", "/srv/"
config.vm.provision :salt do |salt|
salt.install_type = "git"
salt.install_args = "develop"
salt.minion_config = "salt/minion"
salt.run_highstate = true
salt.verbose = true
salt.colorize = true
end
end