inprovise-vbox 0.2.14 → 0.2.16
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 +5 -5
- data/.github/dependabot.yml +12 -0
- data/inprovise-vbox.gemspec +3 -3
- data/lib/inprovise/vbox/vbox.rb +9 -3
- data/lib/inprovise/vbox/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 67be4c368b4cd1877c8f6e177f3620bbafa8682b8ab5f113f5da0165ff31eca5
|
|
4
|
+
data.tar.gz: 63333a0494b51886dfc0f4ec41749faf7382f7ab6ca92a677d7257061f8af249
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 129cba3b21d4ee67c4146cb4d6ea01f75a20a013a300f14b1bbfde8d27286d4b8e7d6f92fbbc26d11087456666b6b40c0976d24712493abc6fbc6e02b90d435f
|
|
7
|
+
data.tar.gz: 61686562ceb7397dfe1503c05671eb6278bc43faa96ea062ef5ae6b96cf68da90c80151bd73cd4c734fd351d99a42bf4df56bcf2ee7afc0d6c62807662d541af
|
data/inprovise-vbox.gemspec
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
gem.homepage = ""
|
|
8
|
+
gem.homepage = "https://github.com/RemedyIT/Inprovise-VBox"
|
|
9
9
|
|
|
10
10
|
gem.files = `git ls-files`.split($\)
|
|
11
11
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/inprovise/vbox/vbox.rb
CHANGED
|
@@ -45,7 +45,11 @@ module Inprovise::VBox
|
|
|
45
45
|
# check if os variant defined on this host
|
|
46
46
|
if cfg[:os]
|
|
47
47
|
os_variant = sudo("osinfo-query --fields=short-id os | grep #{cfg[:os]}").strip
|
|
48
|
-
|
|
48
|
+
unless os_variant.empty?
|
|
49
|
+
cmdline << "--os-variant #{cfg[:os]} "
|
|
50
|
+
else
|
|
51
|
+
cmdline << "--osinfo detect=on,require=off "
|
|
52
|
+
end
|
|
49
53
|
end
|
|
50
54
|
cmdline << '--network '
|
|
51
55
|
cmdline << case cfg[:network]
|
|
@@ -53,6 +57,8 @@ module Inprovise::VBox
|
|
|
53
57
|
"network=#{cfg[:netname] || 'default'}"
|
|
54
58
|
when :bridge
|
|
55
59
|
"bridge=#{cfg[:netname] || 'virbr0' }"
|
|
60
|
+
when :direct
|
|
61
|
+
"type=direct,source=#{cfg[:source]}"
|
|
56
62
|
end
|
|
57
63
|
cmdline << ",model=#{cfg[:nic]}" if cfg[:nic]
|
|
58
64
|
cmdline << ' '
|
|
@@ -236,12 +242,12 @@ module Inprovise::VBox
|
|
|
236
242
|
end
|
|
237
243
|
Inprovise::Infrastructure.save unless node_group.empty?
|
|
238
244
|
unless vbs.vbox_no_sniff(self)
|
|
239
|
-
(1..
|
|
245
|
+
(1..10).each do |i|
|
|
240
246
|
begin
|
|
241
247
|
Inprovise::Sniffer.run_sniffers_for(node)
|
|
242
248
|
break
|
|
243
249
|
rescue
|
|
244
|
-
raise if i ==
|
|
250
|
+
raise if i == 10
|
|
245
251
|
sleep(5) # maybe VM needs more time to start up SSH
|
|
246
252
|
node.disconnect!
|
|
247
253
|
# retry on (comm) failure
|
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.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- Johnny Willemsen
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inprovise
|
|
@@ -26,11 +26,12 @@ 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: []
|
|
33
33
|
files:
|
|
34
|
+
- ".github/dependabot.yml"
|
|
34
35
|
- ".gitignore"
|
|
35
36
|
- ".travis.yml"
|
|
36
37
|
- Gemfile
|
|
@@ -43,7 +44,7 @@ files:
|
|
|
43
44
|
- test/fixtures/inprovise.rb
|
|
44
45
|
- test/test_helper.rb
|
|
45
46
|
- test/vbox_test.rb
|
|
46
|
-
homepage:
|
|
47
|
+
homepage: https://github.com/RemedyIT/Inprovise-VBox
|
|
47
48
|
licenses: []
|
|
48
49
|
metadata: {}
|
|
49
50
|
post_install_message: ''
|
|
@@ -61,9 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
61
62
|
- !ruby/object:Gem::Version
|
|
62
63
|
version: '0'
|
|
63
64
|
requirements: []
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
signing_key:
|
|
65
|
+
rubygems_version: 3.2.3
|
|
66
|
+
signing_key:
|
|
67
67
|
specification_version: 4
|
|
68
68
|
summary: Simple, easy and intuitive virtual machine provisioning
|
|
69
69
|
test_files:
|