-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathVagrantfile
52 lines (41 loc) · 1.53 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# PLEASE NOTE:
# You will need the plugins listed below for this VM to function correctly.
# Please also note that the bindfs plugin does make performance a little slower
# but is necessary for permission in Docker containers to work as expected.
#
# $ vagrant plugin install vagrant-bindfs
VAGRANTFILE_API_VERSION = "2"
# Change these to suite your needs / machine
CPUS = ENV["OCH_CPUS"] || 4
MEMORY = ENV["OCH_MEMORY"] || 4096
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "osx-container-host" do |node|
node.vm.box = "ubuntu/trusty64"
node.vm.hostname = "container-host"
node.vm.provider "virtualbox" do |v|
v.name = "osx-container-host"
v.cpus = CPUS
v.memory = MEMORY
end
config.vm.provider :parallels do |v, |
override.vm.box = "parallels/ubuntu-14.04"
v.update_guest_tools = true
v.optimize_power_consumption = false
v.customize ["set", :id, "--cpus", CPUS]
v.customize ["set", :id, "--memsize", MEMORY]
v.customize ["set", :id, "--videosize", "256"]
end
node.vm.network "private_network", ip: "192.168.200.2"
node.nfs.map_uid = Process.uid
node.nfs.map_gid = Process.gid
node.vm.synced_folder "/Users", "/Users.tmp", type: "nfs"
node.bindfs.bind_folder "/Users.tmp", "/Users",
create_as_user: true,
perms: "u=u:g=g:o=o"
node.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/ansible/container_host.yml"
end
end
end