vagrant-nfs_guest 0.1.11 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 68bea2f019bd5edd93dc71b5f11914463aef8e82
4
- data.tar.gz: d1624a4519e1b43607df404a6f10961142941d1b
2
+ SHA256:
3
+ metadata.gz: 5ebac770313468b893d11c594c679dea01832798e419da22b49c80981baa9587
4
+ data.tar.gz: 79cd98b77eb5d5ef0b0855880316c9bf365ac19c9b05edd4ff5f627d6b3610e9
5
5
  SHA512:
6
- metadata.gz: 18d17c27a60291cb93c48ba1f7732d9aa9bb25746ec1aaf21003df1ba7ca2f65739f54ce76d0b7b29ae9064556f42e4f7f0c551f5bf31f30da0a9409a9327875
7
- data.tar.gz: 584169bcaaf4ec740a3731b0e7aee83c1933c0dc03f45a38f199fb81648e4976cd865a9debacce1a8d3429c89be30779f6998cc4781dd4a39d6a314acf1979f3
6
+ metadata.gz: 73154a358815eecaf306c6e52c97cb7f362f53a6412c7e6b9dae7c7f8c7cf9c1027fffc03ace40365974e9f136f34460af76ac2390dcf42eff219327593203f9
7
+ data.tar.gz: f0cc25aab0775c7a4c48527cd1b07600ccfaa0aa9e546e6d4768f95bd569cfae44b8d6764272df01544575685aa2d74793f8a8567edf22a93e149e40cb490e3b
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.3.0
1
+ 2.6.3
@@ -0,0 +1,46 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource@learnosity.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
+
45
+ [homepage]: http://contributor-covenant.org
46
+ [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,37 @@
1
+ ## How can I contribute?
2
+
3
+ #### I think I've found a bug
4
+
5
+ * Firstly cool! We can hopefully make the project better by your discovery.
6
+
7
+ * Before you submit an **Issue** please have a scan through any existing or closed Issues to make sure you've found something unique and unreported.
8
+
9
+ * If your issue seems unique and unreported, you should open a GitHub **Issue**.
10
+
11
+ * In your Issue report, please include as much information as you can.
12
+ * A detailed summary of the error you are seeing, and any information you think is relevant.
13
+ * A snippet of your Vagrantfile showing your `vagrant-nfs_guest` share, and the network settings used.
14
+ * The version of Vagrant, the host and guest operating system, which VM provider and it's version.
15
+ * A simple example Vagrantfile that demonstrates the error (this would be super useful if possible).
16
+
17
+ * [You should then create a new issue](https://github.com/Learnosity/vagrant-nfs_guest/issues/new)
18
+
19
+ #### I've found a bug and I've fixed it!
20
+
21
+ * Wow, awesome! This will help greatly!
22
+
23
+ * Open a new GitHub pull request with the patch.
24
+
25
+ * Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
26
+
27
+ * **Please send us a PR, all input and suggestions welcome. All assistance greatfully accepted and appreciated.**
28
+
29
+ #### I have an idea for a feature, can you please add it?
30
+
31
+ `vagrant-nfs_guest` is used daily by our in-house team and is well used and tested. So any new feature that doesn't impact our daily usage or is very specific to your use-case probably won't get the investment in time you might require.
32
+
33
+ We don't want to disappoint you, but the facts of life are sometimes _"if you want it done, you have to do it yourself"_. We will happily help you where we can, and we will joyfully accept any PRs you come up with, but we will not just add any feature that's requested.
34
+
35
+ #### But it's a really really good idea!
36
+
37
+ Again, if it's a world beating idea, put something together (even if it's pseudo-code) and a good document on the problem you're trying to fix and the value of your feature. Then submit a PR.
data/Gemfile CHANGED
@@ -4,7 +4,8 @@ group :development do
4
4
  # We depend on Vagrant for development, but we don't add it as a
5
5
  # gem dependency because we expect to be installed within the
6
6
  # Vagrant environment itself using `vagrant plugin`.
7
- gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git"
7
+ gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :tag => "v2.2.18"
8
+ gem "rake"
8
9
  end
9
10
 
10
11
  group :plugins do
data/Gemfile.lock ADDED
@@ -0,0 +1,113 @@
1
+ GIT
2
+ remote: https://github.com/mitchellh/vagrant.git
3
+ revision: 52857ccac9d315a6e1897c7885f463983ac67957
4
+ tag: v2.2.18
5
+ specs:
6
+ vagrant (2.2.18)
7
+ bcrypt_pbkdf (~> 1.1)
8
+ childprocess (~> 4.1.0)
9
+ ed25519 (~> 1.2.4)
10
+ erubi
11
+ hashicorp-checkpoint (~> 0.1.5)
12
+ i18n (~> 1.8)
13
+ listen (~> 3.5)
14
+ log4r (~> 1.1.9, < 1.1.11)
15
+ mime-types (~> 3.3)
16
+ net-scp (~> 3.0.0)
17
+ net-sftp (~> 3.0)
18
+ net-ssh (>= 6.1.0, < 6.2)
19
+ rb-kqueue (~> 0.2.0)
20
+ rexml (~> 3.2)
21
+ rubyzip (~> 2.0)
22
+ vagrant_cloud (~> 3.0.5)
23
+ wdm (~> 0.1.0)
24
+ winrm (>= 2.3.4, < 3.0)
25
+ winrm-elevated (>= 1.2.1, < 2.0)
26
+ winrm-fs (>= 1.3.4, < 2.0)
27
+
28
+ PATH
29
+ remote: .
30
+ specs:
31
+ vagrant-nfs_guest (1.0.5)
32
+ bundler (>= 2.2.10)
33
+
34
+ GEM
35
+ remote: https://rubygems.org/
36
+ specs:
37
+ bcrypt_pbkdf (1.1.0)
38
+ builder (3.2.4)
39
+ childprocess (4.1.0)
40
+ concurrent-ruby (1.1.9)
41
+ ed25519 (1.2.4)
42
+ erubi (1.10.0)
43
+ excon (0.85.0)
44
+ ffi (1.15.3)
45
+ gssapi (1.3.1)
46
+ ffi (>= 1.0.1)
47
+ gyoku (1.3.1)
48
+ builder (>= 2.1.2)
49
+ hashicorp-checkpoint (0.1.5)
50
+ httpclient (2.8.3)
51
+ i18n (1.8.10)
52
+ concurrent-ruby (~> 1.0)
53
+ listen (3.7.0)
54
+ rb-fsevent (~> 0.10, >= 0.10.3)
55
+ rb-inotify (~> 0.9, >= 0.9.10)
56
+ little-plugger (1.1.4)
57
+ log4r (1.1.10)
58
+ logging (2.3.0)
59
+ little-plugger (~> 1.1)
60
+ multi_json (~> 1.14)
61
+ mime-types (3.3.1)
62
+ mime-types-data (~> 3.2015)
63
+ mime-types-data (3.2021.0704)
64
+ multi_json (1.15.0)
65
+ net-scp (3.0.0)
66
+ net-ssh (>= 2.6.5, < 7.0.0)
67
+ net-sftp (3.0.0)
68
+ net-ssh (>= 5.0.0, < 7.0.0)
69
+ net-ssh (6.1.0)
70
+ nori (2.6.0)
71
+ rake (13.0.6)
72
+ rb-fsevent (0.11.0)
73
+ rb-inotify (0.10.1)
74
+ ffi (~> 1.0)
75
+ rb-kqueue (0.2.6)
76
+ ffi (>= 0.5.0)
77
+ rexml (3.2.5)
78
+ rubyntlm (0.6.3)
79
+ rubyzip (2.3.2)
80
+ vagrant_cloud (3.0.5)
81
+ excon (~> 0.73)
82
+ log4r (~> 1.1.10)
83
+ rexml (~> 3.2.5)
84
+ wdm (0.1.1)
85
+ winrm (2.3.6)
86
+ builder (>= 2.1.2)
87
+ erubi (~> 1.8)
88
+ gssapi (~> 1.2)
89
+ gyoku (~> 1.0)
90
+ httpclient (~> 2.2, >= 2.2.0.2)
91
+ logging (>= 1.6.1, < 3.0)
92
+ nori (~> 2.0)
93
+ rubyntlm (~> 0.6.0, >= 0.6.3)
94
+ winrm-elevated (1.2.3)
95
+ erubi (~> 1.8)
96
+ winrm (~> 2.0)
97
+ winrm-fs (~> 1.0)
98
+ winrm-fs (1.3.5)
99
+ erubi (~> 1.8)
100
+ logging (>= 1.6.1, < 3.0)
101
+ rubyzip (~> 2.0)
102
+ winrm (~> 2.0)
103
+
104
+ PLATFORMS
105
+ x86_64-darwin-20
106
+
107
+ DEPENDENCIES
108
+ rake
109
+ vagrant!
110
+ vagrant-nfs_guest!
111
+
112
+ BUNDLED WITH
113
+ 2.2.26
data/README.md CHANGED
@@ -2,10 +2,14 @@
2
2
 
3
3
  ## What's New?
4
4
 
5
- - NEW: added untested support for Docker providers (Please raise any issues if they don't work!).
6
- - NEW: added Parallels provider support
7
- - NEW: Redhat/CentOS guest support added.
8
- - NEW: Now properly handles force halts
5
+ - NEW: moved to version v1.0.0 as it's no longer a "beta" plugin, it's been well used and tested. So figured now is a good time.
6
+ - NEW: `disabled` flag on shares now are properly respected
7
+ - UPDATED: share directories on guest are no longer recursively `chown`.
8
+ - NEW: Added VMware Fusion provider support.
9
+ - Added untested support for Docker providers (Please raise any issues if they don't work!).
10
+ - Added Parallels provider support
11
+ - Redhat/CentOS guest support added.
12
+ - Now properly handles force halts.
9
13
  - FIXED: suspend and resume with 'up' instead of 'resume' fixed.
10
14
  - Supports Vagrant > 1.6.
11
15
  - Handles actions ```up```, ```halt```, ```destroy```, ```suspend```, ```resume``` and ```package``` properly.
@@ -7,8 +7,8 @@ VAGRANTFILE_API_VERSION = "2"
7
7
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
8
 
9
9
  # Every Vagrant virtual environment requires a box to build off of.
10
- config.vm.box = "ubuntu/trusty64" # ubuntu
11
- #config.vm.box = "centos/7" # centos/7
10
+ #config.vm.box = "ubuntu/trusty64" # ubuntu
11
+ config.vm.box = "centos/7" # centos/7
12
12
  #config.vm.box = "nrel/CentOS-6.5-x86_64" # centos/6.5
13
13
 
14
14
  # Create a private network, which allows host-only access to the machine
@@ -21,7 +21,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
21
21
  # the path on the guest to mount the folder. And the optional third
22
22
  # argument is a set of non-required options.
23
23
  config.vm.synced_folder '.', '/vagrant', disabled: true
24
- config.vm.synced_folder './vagrant_share', '/vagrant', create: true, type: 'nfs_guest'
24
+ config.vm.synced_folder './vagrant_share', '/vagrant', create: true, type: 'nfs_guest', disabled: false
25
25
  #config.vm.synced_folder './vagrant_share', '/vagrant', type: 'nfs'
26
26
 
27
27
  end
@@ -38,11 +38,15 @@ module VagrantPlugins
38
38
 
39
39
  # grab the folders to check if any use nfs_guest and require host networking
40
40
  folders = @machine.config.vm.synced_folders
41
+
41
42
  nfs_guest = false
43
+ nfs_guest_folders = {}
44
+
42
45
  folders.each do |name, opts|
43
- if opts[:type] == :nfs_guest
46
+ if opts[:type] == :nfs_guest && opts[:disabled] == false
44
47
  nfs_guest = true
45
48
  opts[:hostpath] = File.expand_path(opts[:hostpath], env[:root_path])
49
+ nfs_guest_folders[name] = opts.dup
46
50
  end
47
51
  end
48
52
 
@@ -64,7 +68,7 @@ module VagrantPlugins
64
68
  if installed
65
69
  # Mount guest NFS folders
66
70
  @machine.ui.info(I18n.t("vagrant_nfs_guest.actions.vm.nfs.mounting"))
67
- @machine.env.host.capability(:nfs_mount, @machine.ui, @machine.id, machine_ip, folders)
71
+ @machine.env.host.capability(:nfs_mount, @machine.ui, @machine.id, machine_ip, nfs_guest_folders)
68
72
  end
69
73
  end
70
74
  end
@@ -16,21 +16,34 @@ module VagrantPlugins
16
16
  @machine.ui.info(I18n.t("vagrant_nfs_guest.actions.vm.nfs.unmounting"))
17
17
  folders = @machine.config.vm.synced_folders
18
18
 
19
+ nfs_guest = false
20
+ nfs_guest_folders = {}
21
+
19
22
  folders.each do |name, opts|
20
- if opts[:type] == :nfs_guest
23
+ if opts[:type] == :nfs_guest && opts[:disabled] == false
24
+ nfs_guest = true
21
25
  opts[:hostpath] = File.expand_path(opts[:hostpath], env[:root_path])
26
+
22
27
  if env[:force_halt]
23
28
  # If this is a force halt, force unmount the nfs shares.
24
29
  opts[:unmount_options] = opts.fetch(:unmount_options, []) << '-f'
25
- # We have to change the working dir if inside a hostmount to prevent "No such file or directory - getcwd" errors.
30
+
31
+ # We have to change the working dir if inside a hostmount to
32
+ # prevent "No such file or directory - getcwd" errors.
26
33
  if Dir.pwd.start_with?(opts[:hostpath])
27
34
  Dir.chdir("#{opts[:hostpath]}/..")
28
35
  end
29
36
  end
37
+
38
+ nfs_guest_folders[name] = opts.dup
30
39
  end
31
40
  end
32
41
 
33
- @machine.env.host.capability(:nfs_unmount, @machine.ui, folders)
42
+ if not nfs_guest
43
+ return
44
+ end
45
+
46
+ @machine.env.host.capability(:nfs_unmount, @machine.ui, nfs_guest_folders)
34
47
  end
35
48
 
36
49
  @app.call(env)
@@ -56,14 +56,16 @@ module VagrantPlugins
56
56
  machine.guest.capability(:nfs_check_command)
57
57
  end
58
58
 
59
- def self.nfs_export(machine, ip, folders)
59
+ def self.nfs_export(machine, ips, folders)
60
60
  if !nfs_capable?(machine)
61
61
  raise Errors::NFSServerMissing
62
62
  end
63
63
 
64
64
  if machine.guest.capability?(:nfs_setup_firewall)
65
65
  machine.ui.info I18n.t("vagrant_nfs_guest.guests.linux.nfs_setup_firewall")
66
- machine.guest.capability(:nfs_setup_firewall, ip)
66
+ ips.each do |ip|
67
+ machine.guest.capability(:nfs_setup_firewall, ip)
68
+ end
67
69
  end
68
70
 
69
71
  nfs_exports_template = machine.guest.capability(:nfs_exports_template)
@@ -73,7 +75,7 @@ module VagrantPlugins
73
75
  output = Vagrant::Util::TemplateRenderer.render(
74
76
  nfs_exports_template,
75
77
  uuid: machine.id,
76
- ips: [ip],
78
+ ips: ips,
77
79
  folders: folders,
78
80
  user: Process.uid)
79
81
 
@@ -151,7 +153,7 @@ module VagrantPlugins
151
153
  opts[:group] ||= machine.ssh_info[:username]
152
154
 
153
155
  machine.communicate.sudo(
154
- "chown -R #{opts[:owner]}:#{opts[:group]} #{expanded_guest_path}",
156
+ "chown #{opts[:owner]}:#{opts[:group]} #{expanded_guest_path}",
155
157
  error_class: Errors::GuestNFSError,
156
158
  error_key: :nfs_create_mounts_failed
157
159
  )
@@ -8,8 +8,24 @@ module VagrantPlugins
8
8
  machine.communicate.test("test $(ps -o comm= 1) == 'systemd'")
9
9
  end
10
10
 
11
+ def self.firewalld?(machine)
12
+ machine.communicate.test("test $(command -v firewall-cmd)")
13
+ end
14
+
15
+ def self.firewalld_enabled?(machine)
16
+ machine.communicate.test("test $(firewall-cmd --state) == 'running'")
17
+ end
18
+
19
+ def self.dnf?(machine)
20
+ machine.communicate.test("test $(command -v dnf)")
21
+ end
22
+
11
23
  def self.nfs_server_install(machine)
12
- machine.communicate.sudo("yum -y install nfs-utils nfs-utils-lib")
24
+ if dnf?(machine)
25
+ machine.communicate.sudo("dnf -y install nfs-utils")
26
+ else
27
+ machine.communicate.sudo("yum -y install nfs-utils")
28
+ end
13
29
 
14
30
  if systemd?(machine)
15
31
  machine.communicate.sudo("systemctl enable rpcbind nfs-server")
@@ -39,6 +55,14 @@ module VagrantPlugins
39
55
 
40
56
  nfs_start_command(machine)
41
57
  end
58
+
59
+ if firewalld?(machine) and firewalld_enabled?(machine)
60
+ # add nfs rules if we have firewalld and it's enabled
61
+ machine.communicate.sudo("firewall-cmd --permanent --add-service=nfs")
62
+ machine.communicate.sudo("firewall-cmd --permanent --add-service=mountd")
63
+ machine.communicate.sudo("firewall-cmd --permanent --add-service=rpc-bind")
64
+ machine.communicate.sudo("firewall-cmd --reload")
65
+ end
42
66
  end
43
67
 
44
68
  def self.nfs_server_installed(machine)
@@ -6,10 +6,6 @@ module VagrantPlugins
6
6
 
7
7
  def self.nfs_mount(environment, ui, id, ips, folders)
8
8
  folders.each do |name, opts|
9
- if opts[:type] != :nfs_guest
10
- next
11
- end
12
-
13
9
  ips.each do |ip|
14
10
  ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry",
15
11
  guestpath: opts[:guestpath],
@@ -6,10 +6,6 @@ module VagrantPlugins
6
6
 
7
7
  def self.nfs_unmount(environment, ui, folders)
8
8
  folders.each do |name, opts|
9
- if opts[:type] != :nfs_guest
10
- next
11
- end
12
-
13
9
  ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry",
14
10
  guestpath: opts[:guestpath],
15
11
  hostpath: opts[:hostpath]))
@@ -19,7 +15,7 @@ module VagrantPlugins
19
15
  umount_msg = `umount #{unmount_options} '#{opts[:hostpath]}' 2>&1`
20
16
 
21
17
  if $?.exitstatus != 0
22
- if not umount_msg.include? 'not currently mounted'
18
+ unless /not (currently )?mounted/ =~ umount_msg
23
19
  ui.info "NFS mounts still in use!"
24
20
  exit(1)
25
21
  end
@@ -6,10 +6,6 @@ module VagrantPlugins
6
6
 
7
7
  def self.nfs_mount(environment, ui, id, ips, folders)
8
8
  folders.each do |name, opts|
9
- if opts[:type] != :nfs_guest
10
- next
11
- end
12
-
13
9
  ips.each do |ip|
14
10
  ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry",
15
11
  guestpath: opts[:guestpath],
@@ -6,10 +6,6 @@ module VagrantPlugins
6
6
 
7
7
  def self.nfs_unmount(environment, ui, folders)
8
8
  folders.each do |name, opts|
9
- if opts[:type] != :nfs_guest
10
- next
11
- end
12
-
13
9
  ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry",
14
10
  guestpath: opts[:guestpath],
15
11
  hostpath: opts[:hostpath]))
@@ -19,7 +15,7 @@ module VagrantPlugins
19
15
  umount_msg = `sudo umount #{unmount_options} '#{opts[:hostpath]}' 2>&1`
20
16
 
21
17
  if $?.exitstatus != 0
22
- if not umount_msg.include? 'not currently mounted'
18
+ unless /not (currently )?mounted/ =~ umount_msg
23
19
  ui.info umount_msg
24
20
  ui.info "Maybe NFS mounts still in use!"
25
21
  exit(1)
@@ -20,6 +20,7 @@ require_relative "providers/virtualbox/plugin"
20
20
  require_relative "providers/parallels/plugin"
21
21
  require_relative "providers/docker/plugin"
22
22
  require_relative "providers/lxc/plugin"
23
+ require_relative "providers/vmware_fusion/plugin"
23
24
 
24
25
  module VagrantPlugins
25
26
  module SyncedFolderNFSGuest
@@ -0,0 +1,19 @@
1
+ module VagrantPlugins
2
+ module SyncedFolderNFSGuest
3
+ module ProviderVMwareFusion
4
+ module Cap
5
+ def self.read_host_ip
6
+ # In practice, we need the host's IP on the vmnet device this VM uses.
7
+ # It seems a bit tricky to get the right one, so let's allow all.
8
+ return `for N in $(ifconfig | awk -F: '/vmnet/ { print $1; }'); do ifconfig $N | awk '/inet / { print $2; }'; done`.split("\n")
9
+ end
10
+
11
+ def self.nfs_settings(machine)
12
+ host_ip = self.read_host_ip
13
+ machine_ip = machine.provider.driver.read_ip
14
+ return host_ip, machine_ip
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ require "vagrant"
2
+
3
+ module VagrantPlugins
4
+ module SyncedFolderNFSGuest
5
+ class Plugin < Vagrant.plugin("2")
6
+ name "vmware_fusion-provider"
7
+ description "vagrant-vmware_fusion provider"
8
+
9
+ provider_capability(:vmware_fusion, :nfs_settings) do
10
+ require_relative "cap/nfs_settings"
11
+ ProviderVMwareFusion::Cap
12
+ end
13
+ provider_capability(:vmware_desktop, :nfs_settings) do
14
+ require_relative "cap/nfs_settings"
15
+ ProviderVMwareFusion::Cap
16
+ end
17
+ end
18
+ end
19
+ end
@@ -59,7 +59,7 @@ module VagrantPlugins
59
59
  end
60
60
 
61
61
  machine.ui.info I18n.t("vagrant_nfs_guest.actions.vm.nfs.exporting")
62
- machine.guest.capability(:nfs_export, host_ip, mount_folders)
62
+ machine.guest.capability(:nfs_export, Array(host_ip), mount_folders)
63
63
  end
64
64
 
65
65
  protected
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SyncedFolderNFSGuest
3
- VERSION = "0.1.11"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.3"
21
+ spec.add_dependency "bundler", ">= 2.2.10"
22
22
  spec.add_development_dependency "rake"
23
23
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-nfs_guest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Garfield
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
19
+ version: 2.2.10
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +47,10 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
49
  - ".ruby-version"
50
+ - CODE_OF_CONDUCT.md
51
+ - CONTRIBUTING.md
50
52
  - Gemfile
53
+ - Gemfile.lock
51
54
  - LICENSE.txt
52
55
  - README.md
53
56
  - Rakefile
@@ -81,6 +84,8 @@ files:
81
84
  - lib/vagrant-nfs_guest/providers/parallels/plugin.rb
82
85
  - lib/vagrant-nfs_guest/providers/virtualbox/cap/nfs_settings.rb
83
86
  - lib/vagrant-nfs_guest/providers/virtualbox/plugin.rb
87
+ - lib/vagrant-nfs_guest/providers/vmware_fusion/cap/nfs_settings.rb
88
+ - lib/vagrant-nfs_guest/providers/vmware_fusion/plugin.rb
84
89
  - lib/vagrant-nfs_guest/synced_folder.rb
85
90
  - lib/vagrant-nfs_guest/version.rb
86
91
  - templates/locales/en.yml
@@ -90,7 +95,7 @@ homepage: ''
90
95
  licenses:
91
96
  - MIT
92
97
  metadata: {}
93
- post_install_message:
98
+ post_install_message:
94
99
  rdoc_options: []
95
100
  require_paths:
96
101
  - lib
@@ -105,9 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
110
  - !ruby/object:Gem::Version
106
111
  version: '0'
107
112
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.5.1
110
- signing_key:
113
+ rubygems_version: 3.2.26
114
+ signing_key:
111
115
  specification_version: 4
112
116
  summary: Adds support for guest nfs exporting of synced folders
113
117
  test_files: []