vagrant-nfs_guest 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -3
- data/lib/vagrant-nfs_guest/guests/debian/cap/nfs_server.rb +22 -0
- data/lib/vagrant-nfs_guest/plugin.rb +15 -0
- data/lib/vagrant-nfs_guest/version.rb +1 -1
- metadata +25 -12
- checksums.yaml +0 -7
data/README.md
CHANGED
@@ -2,13 +2,14 @@
|
|
2
2
|
|
3
3
|
## What's New?
|
4
4
|
|
5
|
-
- Supports Vagrant 1.6
|
5
|
+
- Supports Vagrant > 1.6
|
6
6
|
- Handles actions ```up```, ```halt```, ```destroy```, ```suspend```, ```resume``` and ```package``` properly
|
7
7
|
- Uses retryable() for host to guest communications allow more fault tolerance
|
8
8
|
- Better error messages and handling
|
9
9
|
- Re-organisation of modules and class to better match Vagrant proper
|
10
10
|
- Simplified the plugin events binding
|
11
|
-
- Will install the NFS daemon on the guest if the guest capability is supported (Ubuntu only at this stage)
|
11
|
+
- Will install the NFS daemon on the guest if the guest capability is supported (Ubuntu and Debian only at this stage)
|
12
|
+
- Supports BSD/OSX, and Linux based Hosts that support NFS mounting
|
12
13
|
|
13
14
|
## Overview
|
14
15
|
|
@@ -16,7 +17,7 @@ Allows a guest VM to export synced folders via NFS and the host to mount them.
|
|
16
17
|
|
17
18
|
Basically it's just the usual NFS synced folders in Vagrant but the roles are reversed.
|
18
19
|
|
19
|
-
**WARNING** this has only been tested fully using an OSX host and a Ubuntu guest.
|
20
|
+
**WARNING** this has only been tested fully using an OSX host and a Ubuntu guest by us.
|
20
21
|
We're happy to receive pull-request to support alternatives hosts and guests. To implement this support is relatively trivial if you look in ./lib/hosts and ./lib/guests, and then just modify the "plugin.py" to include the new capabilities.
|
21
22
|
|
22
23
|
## Installation
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module SyncedFolderNFSGuest
|
3
|
+
module GuestDebian
|
4
|
+
module Cap
|
5
|
+
class NFSServer
|
6
|
+
def self.nfs_test_command(env)
|
7
|
+
"test -x /usr/sbin/exportfs"
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.nfs_server_install(machine)
|
11
|
+
machine.communicate.sudo("apt-get update")
|
12
|
+
machine.communicate.sudo("apt-get -y install nfs-kernel-server")
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.nfs_server_installed(machine)
|
16
|
+
machine.communicate.test("test -e /etc/init.d/nfs-kernel-server")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -63,6 +63,21 @@ module VagrantPlugins
|
|
63
63
|
GuestLinux::Cap::NFSExport
|
64
64
|
end
|
65
65
|
|
66
|
+
guest_capability(:debian, :nfs_test_command) do
|
67
|
+
require_relative "guests/debian/cap/nfs_server"
|
68
|
+
GuestDebian::Cap::NFSServer
|
69
|
+
end
|
70
|
+
|
71
|
+
guest_capability(:debian, "nfs_server_installed") do
|
72
|
+
require_relative "guests/debian/cap/nfs_server"
|
73
|
+
GuestDebian::Cap::NFSServer
|
74
|
+
end
|
75
|
+
|
76
|
+
guest_capability(:debian, :nfs_server_install) do
|
77
|
+
require_relative "guests/debian/cap/nfs_server"
|
78
|
+
GuestDebian::Cap::NFSServer
|
79
|
+
end
|
80
|
+
|
66
81
|
guest_capability(:ubuntu, "nfs_server_installed") do
|
67
82
|
require_relative "guests/ubuntu/cap/nfs_server"
|
68
83
|
GuestUbuntu::Cap::NFSServer
|
metadata
CHANGED
@@ -1,41 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-nfs_guest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Alan Garfield
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '1.3'
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.3'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: rake
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- -
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
description: Adds support for guest nfs exporting of synced folders
|
@@ -45,7 +50,7 @@ executables: []
|
|
45
50
|
extensions: []
|
46
51
|
extra_rdoc_files: []
|
47
52
|
files:
|
48
|
-
-
|
53
|
+
- .gitignore
|
49
54
|
- Gemfile
|
50
55
|
- LICENSE.txt
|
51
56
|
- README.md
|
@@ -58,6 +63,7 @@ files:
|
|
58
63
|
- lib/vagrant-nfs_guest/action/unmount_nfs.rb
|
59
64
|
- lib/vagrant-nfs_guest/config.rb
|
60
65
|
- lib/vagrant-nfs_guest/errors.rb
|
66
|
+
- lib/vagrant-nfs_guest/guests/debian/cap/nfs_server.rb
|
61
67
|
- lib/vagrant-nfs_guest/guests/linux/cap/nfs_export.rb
|
62
68
|
- lib/vagrant-nfs_guest/guests/linux/cap/read_user_ids.rb
|
63
69
|
- lib/vagrant-nfs_guest/guests/ubuntu/cap/nfs_server.rb
|
@@ -74,25 +80,32 @@ files:
|
|
74
80
|
homepage: ''
|
75
81
|
licenses:
|
76
82
|
- MIT
|
77
|
-
metadata: {}
|
78
83
|
post_install_message:
|
79
84
|
rdoc_options: []
|
80
85
|
require_paths:
|
81
86
|
- lib
|
82
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
83
89
|
requirements:
|
84
|
-
- -
|
90
|
+
- - ! '>='
|
85
91
|
- !ruby/object:Gem::Version
|
86
92
|
version: '0'
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
hash: 2496989375820171148
|
87
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
88
98
|
requirements:
|
89
|
-
- -
|
99
|
+
- - ! '>='
|
90
100
|
- !ruby/object:Gem::Version
|
91
101
|
version: '0'
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
hash: 2496989375820171148
|
92
105
|
requirements: []
|
93
106
|
rubyforge_project:
|
94
|
-
rubygems_version:
|
107
|
+
rubygems_version: 1.8.23.2
|
95
108
|
signing_key:
|
96
|
-
specification_version:
|
109
|
+
specification_version: 3
|
97
110
|
summary: Adds support for guest nfs exporting of synced folders
|
98
111
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 41d9296319bda57f729a890c777c5f62d8ce02d9
|
4
|
-
data.tar.gz: f0a6dde015a24f3d0b64329a3ecbfdcbd80cc6d2
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 220e555748ee2d07ce05b4c31a18c4c865ac157a848db732344e411b84fe81fc8b8d55cb78bd3a1a885c42a0d54c80065ea8d6b96de94cdbb021c35866c1311b
|
7
|
-
data.tar.gz: 95dd9fb2783f243f6f7b8c567f1b845f6d68f800584ba298fe0c2e21ac4d1549bee0d783f88395260691e601228345c2c8d712c331390f514270fa3fb94d7050
|