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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c3789ec7915202478e19d579be1abdbd40acb53abf0394f57b3e4baa8a2d6c4
4
- data.tar.gz: 71fe094e5a5505ecd19335c8f9a2789074cdfd888dd4ce87b112f6acb1357b75
3
+ metadata.gz: f79e3a6b4e237b99e0ef801f7ae4824db40b2dded9c2774e97d50f428ee2e6e3
4
+ data.tar.gz: 0c683434dcb7ff2635664f5ed8a76d842f9aee845435628be21ce260c0fc225f
5
5
  SHA512:
6
- metadata.gz: e50978c3bac4dab4a44c929bc38b5d511f4e115db02dcad479ccc78ebb3b665d492c98bfac19f9a6089e07dd6309ceb8c3d9b549a64c484b645ae2705371beb8
7
- data.tar.gz: 6e347604d5b3c2c633f38479717a4d435f9c302b3f69f4d4c3790b8ce2703a69a10f2d98d0f55bf8aa255660acfdbdb8b36caf664ecab98cadb4d1fd415c213e
6
+ metadata.gz: 637ef3a6ab8e53d7b699b945f1575f78f0aaa50072d6c946465aaa185db0b83e08e8544921f7335fb360373912ccf43e9ab978bf9875fb2de4d262b3d8ce549c
7
+ data.tar.gz: c71ef34c6d3f42038ce9e755e69753d1c72b1f5fb19576af215cd6578844ea77e51d109ac6f899962e224735fdf36c632c6bf7d4ed9298d88ea3aa924623161c
@@ -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 = ["Martin Corino"]
5
- gem.email = ["mcorino@remedy.nl"]
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"
@@ -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 determin IP address for VBox #{vmname}" unless addr
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
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Inprovise; module VBox
7
7
 
8
- VERSION = '0.2.15'
8
+ VERSION = '0.2.17'
9
9
 
10
10
  end; 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.15
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
- - Martin Corino
7
+ - Johnny Willemsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-17 00:00:00.000000000 Z
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
- - mcorino@remedy.nl
29
+ - jwillemsen@remedy.nl
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []