forked from zivtech/vagrant-development-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (33 loc) · 1.24 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
# Include our deploy command.
if not is_windows
require File.dirname(__FILE__) + '/ssh-add.rb'
end
Vagrant.configure("2") do |config|
# Things you might want to modify!
config.vm.hostname = "local"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
config.vm.network :private_network, ip: "33.33.33.40"
config.vm.box = "precise-vbox-4.2.4"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# TODO: Is this URL accessible?
# config.vm.box_url = "http://fattony.zivtech.com/files/precise-vbox-4.2.4.box"
config.ssh.forward_agent = true
config.vm.provision :puppet do |puppet|
puppet.module_path = "puppet-modules"
puppet.manifests_path = "puppet-manifests"
puppet.manifest_file = "base.pp"
end
# NFS sharing does not work on windows, so if this is windows don't try to start it.
require 'rbconfig'
if not is_windows
config.vm.synced_folder "www", "/var/www", :nfs => true
else
# Uncomment this for windows file sharing. When using windows file sharing, symlinks will not work.
# config.vm.synced_folder "www", "/var/www"
end
end