vagrant-invade 0.6.4 → 0.7.0
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.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -2
- data/lib/vagrant-invade/action/process.rb +1 -1
- data/lib/vagrant-invade/extend.rb +6 -3
- data/lib/vagrant-invade/module/hostmanager/template.erb +1 -1
- data/lib/vagrant-invade/module/network/private/private.rb +1 -1
- data/lib/vagrant-invade/module/nfs/nfs.rb +4 -5
- data/lib/vagrant-invade/module/nfs/rules.yml +2 -2
- data/lib/vagrant-invade/module/nfs/template.erb +9 -12
- data/lib/vagrant-invade/module/plugin/hostmanager/hostmanager.rb +0 -3
- data/lib/vagrant-invade/module/plugin/hostmanager/rules.yml +3 -0
- data/lib/vagrant-invade/module/plugin/hostmanager/template.erb +3 -1
- data/lib/vagrant-invade/module/synced_folder/nfs/nfs.rb +4 -0
- data/lib/vagrant-invade/module/synced_folder/nfs/rules.yml +12 -0
- data/lib/vagrant-invade/module/synced_folder/nfs/template.erb +1 -1
- data/lib/vagrant-invade/module/vagrant/vagrantfile/template.erb +2 -1
- data/lib/vagrant-invade/module/vagrant/vagrantfile/vagrantfile.rb +2 -1
- data/lib/vagrant-invade/validator.rb +1 -0
- data/lib/vagrant-invade/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6d05d703e83eeb6fc6d8ffb8e0de3c50988d58f
|
|
4
|
+
data.tar.gz: 8dafe62da9c4bc56d8fb82d01062ccec910924f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ca932f0f09a78d05fbe3f0fc7de6f5b6da85d26c49b6abf8c35d34af84e9ad5880a980de74d600ac0961b414664aca98107f9ef677043bc5a72b424fe5fe088
|
|
7
|
+
data.tar.gz: 21beb6a37e3e975f10185247c05e7171a9388c06954de003145d5357262df9e74ced320f5fa745db7002683bbfcfe46856aed0c0e49d6b41e151ae7986787ed8
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -24,7 +24,7 @@ GIT
|
|
|
24
24
|
PATH
|
|
25
25
|
remote: .
|
|
26
26
|
specs:
|
|
27
|
-
vagrant-invade (0.
|
|
27
|
+
vagrant-invade (0.7.0)
|
|
28
28
|
|
|
29
29
|
GEM
|
|
30
30
|
remote: https://rubygems.org/
|
|
@@ -103,7 +103,7 @@ PLATFORMS
|
|
|
103
103
|
ruby
|
|
104
104
|
|
|
105
105
|
DEPENDENCIES
|
|
106
|
-
bundler (
|
|
106
|
+
bundler (>= 1.12.5)
|
|
107
107
|
rake (~> 10.0)
|
|
108
108
|
vagrant!
|
|
109
109
|
vagrant-invade!
|
|
@@ -8,9 +8,12 @@ class Hash
|
|
|
8
8
|
d
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
def
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
def compact(opts={})
|
|
12
|
+
inject({}) do |new_hash, (k,v)|
|
|
13
|
+
if !v.nil?
|
|
14
|
+
new_hash[k] = opts[:recurse] && v.class == Hash ? v.compact(opts) : v
|
|
15
|
+
end
|
|
16
|
+
new_hash
|
|
14
17
|
end
|
|
15
18
|
end
|
|
16
19
|
end
|
|
@@ -5,10 +5,9 @@ module VagrantPlugins
|
|
|
5
5
|
class Nfs < InvadeModule
|
|
6
6
|
|
|
7
7
|
attr_reader :result
|
|
8
|
-
attr_accessor :
|
|
8
|
+
attr_accessor :nfs_data
|
|
9
9
|
|
|
10
|
-
def initialize(
|
|
11
|
-
@machine_name = machine_name
|
|
10
|
+
def initialize(nfs_data, result: nil)
|
|
12
11
|
@nfs_data = nfs_data
|
|
13
12
|
@result = result
|
|
14
13
|
end
|
|
@@ -20,8 +19,8 @@ module VagrantPlugins
|
|
|
20
19
|
|
|
21
20
|
# Values for nfs part
|
|
22
21
|
functional = @nfs_data['functional']
|
|
23
|
-
map_uid = @nfs_data['map_uid']
|
|
24
|
-
map_gid = @nfs_data['map_gid']
|
|
22
|
+
@nfs_data['map_uid'] ? map_uid = @nfs_data['map_uid'] : map_uid = Process.uid
|
|
23
|
+
@nfs_data['map_gid'] ? map_gid = @nfs_data['map_gid'] : map_gid = Process.gid
|
|
25
24
|
verify_installed = @nfs_data['verify_installed']
|
|
26
25
|
|
|
27
26
|
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<% if verify_installed %>
|
|
11
|
-
<%= machine_name %>.nfs.verify_installed = <%= verify_installed %>
|
|
12
|
-
<% end %>
|
|
1
|
+
# --- NFS Global Settings --- #
|
|
2
|
+
<% if functional %>
|
|
3
|
+
config.nfs.functional = <%= functional %>
|
|
4
|
+
<% end %>
|
|
5
|
+
config.nfs.map_uid = <%= map_uid %>
|
|
6
|
+
config.nfs.map_gid = <%= map_gid %>
|
|
7
|
+
<% if verify_installed %>
|
|
8
|
+
config.nfs.verify_installed = <%= verify_installed %>
|
|
9
|
+
<% end %>
|
|
@@ -27,9 +27,6 @@ module VagrantPlugins
|
|
|
27
27
|
|
|
28
28
|
# Values for hostmanager section
|
|
29
29
|
enabled = @hostmanager_data['enabled']
|
|
30
|
-
manage_host = @hostmanager_data['manage_host']
|
|
31
|
-
ignore_private_ip = @hostmanager_data['ignore_private_ip']
|
|
32
|
-
include_offline =@hostmanager_data['include_offline']
|
|
33
30
|
aliases = @hostmanager_data['aliases']
|
|
34
31
|
|
|
35
32
|
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
|
@@ -29,6 +29,10 @@ module VagrantPlugins
|
|
|
29
29
|
source = @nfs_data['source']
|
|
30
30
|
path = @nfs_data['path']
|
|
31
31
|
mount_options = @nfs_data['mount_options']
|
|
32
|
+
linux__nfs_options = @nfs_data['linux__nfs_options']
|
|
33
|
+
bsd__nfs_options = @nfs_data['bsd__nfs_options']
|
|
34
|
+
nfs_version = @nfs_data['nfs_version']
|
|
35
|
+
nfs_udp = @nfs_data['nfs_udp']
|
|
32
36
|
|
|
33
37
|
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
|
34
38
|
@result = eruby.result b
|
|
@@ -20,3 +20,15 @@ mount_options:
|
|
|
20
20
|
type: Array
|
|
21
21
|
default:
|
|
22
22
|
- nolock
|
|
23
|
+
linux__nfs_options:
|
|
24
|
+
type: Array
|
|
25
|
+
default: nil
|
|
26
|
+
bsd__nfs_options:
|
|
27
|
+
type: Array
|
|
28
|
+
default: nil
|
|
29
|
+
nfs_version:
|
|
30
|
+
type: Integer
|
|
31
|
+
default: nil
|
|
32
|
+
nfs_udp:
|
|
33
|
+
type: Boolean
|
|
34
|
+
default: nil
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<%= machine_name %>.vm.synced_folder '<%= source %>', '<%= path %>',
|
|
2
|
-
type: 'nfs'<% if mount_options %>, mount_options: <%= mount_options %><% end %><% if enabled %>, disabled: true<% end %>
|
|
2
|
+
type: 'nfs'<% if mount_options %>, mount_options: <%= mount_options %><% end %><% if linux__nfs_options %>, linux__nfs_options: <%= linux__nfs_options %><% end %><% if bsd__nfs_options %>, bsd__nfs_options: <%= bsd__nfs_options%><% end %><% if nfs_version %>, nfs_version: <%= nfs_version %><% end %><% unless nfs_udp.nil? %>, nfs_udp: <%= nfs_udp %><% end %><% if enabled %>, disabled: true<% end %>
|
|
@@ -19,7 +19,8 @@ module VagrantPlugins
|
|
|
19
19
|
begin
|
|
20
20
|
|
|
21
21
|
# Set variables for template files
|
|
22
|
-
|
|
22
|
+
global_hostmanager = @vagrantfile_data['hostmanager']
|
|
23
|
+
global_nfs = @vagrantfile_data['nfs']
|
|
23
24
|
machines = @vagrantfile_data['machines']
|
|
24
25
|
|
|
25
26
|
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-invade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lennart Stein
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|