-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vagrantfile
57 lines (44 loc) · 1.58 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/ruby
#
# Vagrant File for Facio - Requires Vagrant 1.1+
# Provisioner: Salt
# OS: Ubuntu 12.04 LTS 64Bit
#
Vagrant.configure("2") do |config|
# Base Box - http://www.vagrantbox.es/
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
#
# Port Forwarding / Assign static IP
#
config.vm.network :private_network, ip: "10.10.10.10"
#
# Virutalbox Settings
#
config.vm.provider :virtualbox do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
#
# Synced Folders
#
# The Project Mount - This Directory
config.vm.synced_folder ".", "/home/vagrant/facio", :nfs => true
# Salt States
config.vm.synced_folder "./provisioner", "/srv/salt"
# Local Developer States - Not in version control, this is for the developer to manage, e.g Git / Vim Configs
# Developers should symlink this locally to ~/.salt-dev
local_developer_states = File.join(File.expand_path('~'), '.salt')
if File.directory?(local_developer_states)
config.vm.synced_folder local_developer_states, "/home/vagrant/.salt"
else
$stdout.write "Vagrant: Warning: You do not have any local states\n"
end
#
# Provisioner: Salt
#
config.vm.provision :salt do |s|
s.run_highstate = true # Always run the Salt provisioning system
s.minion_config = "provisioner/config/minion.conf" # Where the minion config lives
s.install_type = "stable"
end
end