Skip to content
This repository was archived by the owner on Oct 25, 2018. It is now read-only.

Commit 8c26bec

Browse files
author
Giuseppe Morelli
committed
[dev] nfs share (only linux)
- add yaml config
1 parent 8fee718 commit 8c26bec

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# GMdotnet - Vagrant Multi Machine Virtualbox
22

3+
- [dev] nfs share
4+
35
## 1.0.0
46
- [dev] stable version
57

Vagrantfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ Vagrant.configure("2") do |config|
8282
end
8383
## -*- end rsync folders -*-
8484

85+
# NFS folders
86+
if host['nfs'] != nil
87+
host['nfs'].each do |nfs|
88+
nfsoptions = []
89+
nfs['folder']['options'].each do |options|
90+
nfsoptions.push(options)
91+
end
92+
vmhost.vm.synced_folder nfs['folder']['host_folder'], nfs['folder']['vagrant_folder'], nfs: true, mount_options: nfsoptions
93+
end
94+
end
95+
## -*- end nfs folders -*-
96+
8597
# Virtualbox options
8698
vmhost.vm.provider "virtualbox" do |vb|
8799
# RAM

config/config.yaml.sample

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,12 @@ gmdotnet:
117117
# - "-a"
118118
# - "-r"
119119
# - "-v"
120-
# - "-z"
120+
# - "-z"
121+
# NFS FOLDERS
122+
# nfs:
123+
# - folder:
124+
# # nfs path folder
125+
# host_folder: /var/www/myproject
126+
# vagrant_folder: /var/www/project_vagrant
127+
# options:
128+
# - "

0 commit comments

Comments
 (0)