-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
42 lines (33 loc) · 1.02 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
ANSIBLE_PATH = "/ansible".freeze
Vagrant.require_version ">= 1.8.0"
Vagrant.configure(2) do |config|
config.vm.box = "bento/debian-8.2"
config.vm.network "private_network", ip: "192.168.124.10"
config.ssh.forward_agent = true
if Vagrant::Util::Platform.windows? || ENV["NFS"] == "false"
config.vm.synced_folder ".", ANSIBLE_PATH, enabled: true
else
config.vm.synced_folder ".", ANSIBLE_PATH, enabled: true, type: :nfs
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.synced_folder_opts = {
type: :nfs,
mount_options: ["rw", "vers=3", "tcp", "nolock"]
} unless Vagrant::Util::Platform.windows?
end
config.vm.provider "virtualbox" do |vb|
vb.linked_clone = true
vb.cpus = 2
vb.memory = 2048
end
config.vm.provider "parallels" do |pl|
pl.update_guest_tools = true
pl.use_linked_clone = true
pl.cpus = 2
pl.memory = 2048
end
config.vm.provision "shell", path: "init.sh"
end