vagrant-vlan 1.0.0 → 1.0.1
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/lib/vagrant-vlan/debian/configure_vlans.rb +3 -1
- data/lib/vagrant-vlan/plugin.rb +8 -0
- data/lib/vagrant-vlan/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: 32c21847fb705a6c0ac6cee40c670f409b4c5d53
|
|
4
|
+
data.tar.gz: 4694c011f2209a721ef399339652da623afbd4b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a320d21efd669cc6bbb83c25df6a6c8afacc6707b663cb7e5a0a04feaf6cb9d91efe5590efd5d0e506e81b78f5ade8e5a83bb436723037727cf7939daf6026fb
|
|
7
|
+
data.tar.gz: b17ace920f8ed260ea2716fa3cae3d9cecefc7a20eab555660d0a4eb2977b44287e0364020b6d5a78b1fb913c787fce2a0d521f5d1ae5970cb061fbb02aee5ab
|
|
@@ -13,8 +13,10 @@ module VagrantPlugins
|
|
|
13
13
|
def self.configure_vlans(machine, vlans)
|
|
14
14
|
machine.communicate.tap do |comm|
|
|
15
15
|
# Verify the kernel module is installed and loaded.
|
|
16
|
-
if !comm.test("
|
|
16
|
+
if !comm.test("dpkg -l | grep vlan")
|
|
17
17
|
comm.sudo("apt-get install vlan")
|
|
18
|
+
end
|
|
19
|
+
if !comm.test("lsmod | grep 8021q")
|
|
18
20
|
comm.sudo("modprobe 8021q")
|
|
19
21
|
end
|
|
20
22
|
|
data/lib/vagrant-vlan/plugin.rb
CHANGED
|
@@ -15,8 +15,16 @@ module VagrantPlugins
|
|
|
15
15
|
# configuration middleware) do the actual network configuration on the
|
|
16
16
|
# way up the middleware stack. Therefore, this ensures that we will
|
|
17
17
|
# configure the vlans after the rest of the interfaces.
|
|
18
|
+
|
|
19
|
+
# Hook in before VirtualBox provider
|
|
18
20
|
hook.before(VagrantPlugins::ProviderVirtualBox::Action::Network,
|
|
19
21
|
Action)
|
|
22
|
+
|
|
23
|
+
if Vagrant.has_plugin?("vagrant-lxc")
|
|
24
|
+
require "vagrant-lxc/action"
|
|
25
|
+
# Hook in before LXC provider if we have one
|
|
26
|
+
hook.before(Vagrant::LXC::Action::PrivateNetworks, Action)
|
|
27
|
+
end
|
|
20
28
|
end
|
|
21
29
|
|
|
22
30
|
config "vlan" do
|
data/lib/vagrant-vlan/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-vlan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arctic Wolf Networks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|