-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
80 lines (65 loc) · 2.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# Default Ubuntu Box
config.vm.box = "ubuntu14"
# VirtualBox Configuration
config.vm.provider :virtualbox do |v|
v.customize ['modifyvm', :id, '--name', 'gitq-devbox']
v.customize ['modifyvm', :id, '--memory', '4096']
# v.gui = true
# v.customize ['modifyvm', :id, '--vram', '64']
# v.customize ['modifyvm', :id, '--accelerate3d', 'on']
# v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# v.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
# Fix for slow external network connection
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
v.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
v.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
# Set the box name in VirtualBox to match the working directory
# v_pwd = Dir.pwd
# v.name = File.basename(v_pwd)
end
# SSH Agent Forwarding
#
# Enable agent forwarding on vagrant ssh commands. This allows you to use ssh
# keys on your host machine inside the guest. See the manual for `ssh-add`.
config.ssh.forward_agent = true
# config.ssh.private_key_path = "srv/keys/vagrant"
# config.ssh.insert_key = false
config.vm.hostname = "devbox"
# Private Network
config.vm.network :private_network, id: "devbox_primary", ip: "10.0.0.10"
# Port Forwarding
# config.vm.network :forwarded_port, guest: 8080, host: 8080
# Drive Mapping
config.vm.synced_folder "srv", "/srv"
# config.vm.provision :shell do |shell|
# shell.inline = "
# cat /srv/config/ssh/vagrant.pub >> ~root/.ssh/authorized_keys
# cat /srv/config/ssh/vagrant.pub >> /home/vagrant/.ssh/authorized_keys
# "
# end
# Provisions
#
# config.vm.provision :shell, :path => "provision/setup.sh"
config.vm.provision :shell, :path => "provision/bootstrap.sh"
# config.vm.provision :shell do |shell|
# shell.inline = "
# apt-get install -y puppet
# mkdir -p /etc/puppet/modules
# puppet module install puppetlabs-stdlib --force
# "
# end
#
# config.vm.provision :puppet do |puppet|
# puppet.manifests_path = "puppet/manifests"
# puppet.manifest_file = "devbox.pp"
# puppet.module_path = "puppet/modules"
# puppet.options = "--verbose"
# end
end