inprovise-vbox 0.2.15 → 0.2.17
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/inprovise-vbox.gemspec +2 -2
- data/lib/inprovise/vbox/vbox.rb +8 -1
- data/lib/inprovise/vbox/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f79e3a6b4e237b99e0ef801f7ae4824db40b2dded9c2774e97d50f428ee2e6e3
|
|
4
|
+
data.tar.gz: 0c683434dcb7ff2635664f5ed8a76d842f9aee845435628be21ce260c0fc225f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 637ef3a6ab8e53d7b699b945f1575f78f0aaa50072d6c946465aaa185db0b83e08e8544921f7335fb360373912ccf43e9ab978bf9875fb2de4d262b3d8ce549c
|
|
7
|
+
data.tar.gz: c71ef34c6d3f42038ce9e755e69753d1c72b1f5fb19576af215cd6578844ea77e51d109ac6f899962e224735fdf36c632c6bf7d4ed9298d88ea3aa924623161c
|
data/inprovise-vbox.gemspec
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'lib/inprovise/vbox/version')
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
|
-
gem.authors = ["
|
|
5
|
-
gem.email = ["
|
|
4
|
+
gem.authors = ["Johnny Willemsen"]
|
|
5
|
+
gem.email = ["jwillemsen@remedy.nl"]
|
|
6
6
|
gem.description = %q{VBox script extension for Inprovise}
|
|
7
7
|
gem.summary = %q{Simple, easy and intuitive virtual machine provisioning}
|
|
8
8
|
gem.homepage = "https://github.com/RemedyIT/Inprovise-VBox"
|
data/lib/inprovise/vbox/vbox.rb
CHANGED
|
@@ -57,6 +57,8 @@ module Inprovise::VBox
|
|
|
57
57
|
"network=#{cfg[:netname] || 'default'}"
|
|
58
58
|
when :bridge
|
|
59
59
|
"bridge=#{cfg[:netname] || 'virbr0' }"
|
|
60
|
+
when :direct
|
|
61
|
+
"type=direct,source=#{cfg[:source]}"
|
|
60
62
|
end
|
|
61
63
|
cmdline << ",model=#{cfg[:nic]}" if cfg[:nic]
|
|
62
64
|
cmdline << ' '
|
|
@@ -145,6 +147,7 @@ module Inprovise::VBox
|
|
|
145
147
|
:os => vbs.vbox_os(self),
|
|
146
148
|
:network => vbs.vbox_network(self) || :hostnet,
|
|
147
149
|
:netname => vbs.vbox_netname(self),
|
|
150
|
+
:source=> vbs.vbox_source(self),
|
|
148
151
|
:nic => vbs.vbox_nic(self),
|
|
149
152
|
:graphics => vbs.vbox_graphics(self),
|
|
150
153
|
:image => vbs.vbox_image(self),
|
|
@@ -219,7 +222,7 @@ module Inprovise::VBox
|
|
|
219
222
|
end
|
|
220
223
|
end
|
|
221
224
|
log.println("#{msg}done", :bold)
|
|
222
|
-
raise RuntimeError, "Failed to
|
|
225
|
+
raise RuntimeError, "Failed to determine IP address for VBox #{vmname}" unless addr
|
|
223
226
|
log("VBox #{vmname} : mac=#{mac}, addr=#{addr}") if Inprovise.verbosity > 0
|
|
224
227
|
vbox_opts = vbs.vbox_config_hash(self)
|
|
225
228
|
vbox_opts.delete(:no_node)
|
|
@@ -339,6 +342,10 @@ module Inprovise::VBox
|
|
|
339
342
|
value_for context, context.config[name.to_sym][:netname]
|
|
340
343
|
end
|
|
341
344
|
|
|
345
|
+
def vbox_source(context)
|
|
346
|
+
value_for context, context.config[name.to_sym][:source]
|
|
347
|
+
end
|
|
348
|
+
|
|
342
349
|
def vbox_nic(context)
|
|
343
350
|
value_for context, context.config[name.to_sym][:nic]
|
|
344
351
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inprovise-vbox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Johnny Willemsen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inprovise
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
version: '0'
|
|
27
27
|
description: VBox script extension for Inprovise
|
|
28
28
|
email:
|
|
29
|
-
-
|
|
29
|
+
- jwillemsen@remedy.nl
|
|
30
30
|
executables: []
|
|
31
31
|
extensions: []
|
|
32
32
|
extra_rdoc_files: []
|