vagrant-yaybu 0.0.6 → 0.0.7
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/CHANGES +6 -0
- data/Vagrantfile +4 -4
- data/lib/vagrant-yaybu/provisioner.rb +9 -10
- data/lib/vagrant-yaybu/version.rb +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
data/Vagrantfile
CHANGED
|
@@ -15,11 +15,11 @@ Vagrant::Config.run do |config|
|
|
|
15
15
|
# You can add directories and remote locations to the search path
|
|
16
16
|
# Both Yay files and assets (templates, etc) will be fetched from here.
|
|
17
17
|
# The default search path is the current working directory
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
cfg.searchpath << "../Projects/yaybu-configuration/"
|
|
19
|
+
cfg.searchpath << "https://raw.github.com/isotoma/yaybu-examples/master/"
|
|
20
20
|
|
|
21
21
|
# You can load any config that is on the searchpath
|
|
22
|
-
|
|
22
|
+
cfg.include << "configuration/minecraft.yay"
|
|
23
23
|
|
|
24
24
|
# The ``yay`` parameter lets you put arbritrary config inside your Vagrant file
|
|
25
25
|
cfg.yay = <<-EOS
|
|
@@ -31,7 +31,7 @@ Vagrant::Config.run do |config|
|
|
|
31
31
|
|
|
32
32
|
# Advanced Yaybu hackers might not want to use the default python or a packaged
|
|
33
33
|
# version of Yaybu. You can set this to point at your development environment.
|
|
34
|
-
cfg.python = "/opt/virtualenvs/yaybu/bin/python"
|
|
34
|
+
# cfg.python = "/opt/virtualenvs/yaybu/bin/python"
|
|
35
35
|
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -170,16 +170,15 @@ module Vagrant
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
idx = 1
|
|
173
|
-
vm.config.vm.networks.each do |type,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
end
|
|
173
|
+
vm.config.vm.networks.each do |type, opts|
|
|
174
|
+
ip = opts[0]
|
|
175
|
+
info["interfaces"] << {
|
|
176
|
+
"name" => "eth#{idx}",
|
|
177
|
+
"address" => ip,
|
|
178
|
+
"netmask" => "255.255.255.0",
|
|
179
|
+
"gateway" => (ip.split(".").slice(0, 3) + [1]).join("."),
|
|
180
|
+
}
|
|
181
|
+
idx += 1
|
|
183
182
|
end
|
|
184
183
|
|
|
185
184
|
info["interfaces"] << {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-yaybu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-09-
|
|
12
|
+
date: 2012-09-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: This plugin adds a Yaybu 'push' provisioner to Vagrant
|
|
15
15
|
email:
|