forked from tag1consulting/puppet-centos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.local.example
59 lines (54 loc) · 2.47 KB
/
Vagrantfile.local.example
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
# This file provides an example default LAMP stack Vagrant VM.
# Copy this file to Vagrantfile.local and edit as desired to override the defaults.
# Changes to cpus, memory, etc. require a vagrant reload of course
# Keeping a yum cache directory can help save bandwidth -- useful on a slow connection.
# To enable: uncomment the next line and set it to a valid path on your host machine.
# $vagrant_yum_cache = "/var/cache/vagrant/yum_cache"
# You can configure many vms here if necessary.
# Adjust memory and CPUs as needed.
$vms = {
"default" => { "fqdn" => "vagrant-multi1.tag1consulting.com", "ipaddress" => "10.10.10.10", "memory" => "2048", "cpus" => "2", "forwarded_port" => 80 },
}
# Box source
$box = "tag1/centos7-50GB-vbguest"
$box_url = "http://pkg.tag1consulting.com/vagrant-boxes/centos7-50GB-vbguest/metadata.json"
# Provide list of source mounts. The type defaults to virtualbox, but you could
# also use nfs (on Mac/Linux) or the rsync type.
# See http://docs.vagrantup.com/v2/synced-folders/index.html
#
# Changes to mounts require a 'vagrant reload'.
#
# Using the 'rsync' mount type is suggested if you are mounting a Drupal webroot
# because Drupal will have performance issues running from NFS or Virtalbox mounts.
# http://docs.vagrantup.com/v2/synced-folders/rsync.html
#
# If you use the 'rsync' type you'll need to either manually rsync with
# 'vagrant rsync' or run 'vagrant rsync-auto', which rsyncs continuously
# as you change files on the host workstation.
# If you want to use rsync-auto, it must be specified in the mount definition below.
# http://docs.vagrantup.com/v2/cli/rsync-auto.html
#
# If rsync isn't an option, Linux and OS X hosts have better performance with NFS
# mounts than with Virtualbox mounts. To use NFS mounts, you'll need to edit /etc/sudoers
# on your host machine as described at:
# https://docs.vagrantup.com/v2/synced-folders/nfs.html
#
$dev_mounts = {
"dev" => {
"vm_mountpoint" => "/var/www/vagrant-multi1.tag1consulting.com",
"host_mountpoint" => "./html",
"type" => "rsync",
"rsync__args" => ["--verbose", "--archive", "-zX"],
"rsync__exclude" => [".vagrant/", ".git/", "settings.local.php", "settings.php", "services.yml"],
"rsync__auto" => true,
"owner" => "vagrant",
"group" => "vagrant",
"rsync__chown" => true,
},
}
# "otherfiles" => {
# "vm_mountpoint" => "/var/www/otherfiles",
# "host_mountpoint" => "/Users/you/otherfiles",
# "type" => "nfs",
# "mount_options:" => ["dmode=775", "fmode=664"]
# },