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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f55078a75af1e44111a5c49ae7928b90facdc47b
4
- data.tar.gz: d39d272e37cc3eed46f20aab035d7f3a30442eaa
3
+ metadata.gz: 32c21847fb705a6c0ac6cee40c670f409b4c5d53
4
+ data.tar.gz: 4694c011f2209a721ef399339652da623afbd4b3
5
5
  SHA512:
6
- metadata.gz: 5cf39e099e129a6ffddaadaea73eca4d14cc0ea417ab3658913108b5cdf9b86ea0abe00489bd48d7192e377654e6e0fab1e871601445e7d668cf4c5438073de6
7
- data.tar.gz: bc5148510aba3ff4c232bf499eb6ae9badfb5dc8b427e62c109e5bc9af328954ea6d5a89f91102012f58acc6291ef0f2644a25b22d1807be8d4925009c56de88
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("lsmod | grep 8021q")
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
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VLAN
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
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.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: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler