foreman_bootdisk 21.2.1 → 21.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e94520f92ebdffedf1502f23cee42c9816c3a53c9917b39095045030f8ade269
|
4
|
+
data.tar.gz: f712273e71d7aa2b1a37192941f9da02b634b2caf6b6b007b7f8ead01227a78e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d30245ff81eb9d520f25e70a9efb53d81ce658e624f4bbcf76863f8d30bf108073c798492f036d57d1dc200ffd11bf0f7487b3686a7f5217b98ad7919e63d1d1
|
7
|
+
data.tar.gz: 67b53d9fafb29735a002ca77fc419b44a2a5eaff51cf119843e60744404417315cc3ea433eff0b737c2e4dc89f887f2096f0f96fea1b9aa076977700f6a914e6
|
@@ -32,13 +32,15 @@ module ForemanBootdisk
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def iso_attach(iso, vm_uuid)
|
35
|
+
controller = controller_config(vm_uuid)
|
35
36
|
options = {
|
36
37
|
'instance_uuid' => vm_uuid,
|
37
38
|
'iso' => "foreman_isos/#{iso}",
|
38
39
|
'datastore' => bootdisk_datastore(vm_uuid),
|
39
40
|
'start_connected' => true,
|
40
41
|
'connected' => true,
|
41
|
-
'allow_guest_control' => true
|
42
|
+
'allow_guest_control' => true,
|
43
|
+
'controller_key' => controller[:key]
|
42
44
|
}
|
43
45
|
vm = find_vm_by_uuid(vm_uuid)
|
44
46
|
vm.stop if vm.ready?
|
@@ -55,6 +57,12 @@ module ForemanBootdisk
|
|
55
57
|
}
|
56
58
|
client.vm_reconfig_cdrom options
|
57
59
|
end
|
60
|
+
|
61
|
+
def controller_config(vm_uuid)
|
62
|
+
options = OpenStruct.new(server_id: vm_uuid, attributes: {type: RbVmomi::VIM.VirtualAHCIController.class})
|
63
|
+
client.add_vm_controller(options)
|
64
|
+
client.get_vm_first_sata_controller(vm_uuid)
|
65
|
+
end
|
58
66
|
end
|
59
67
|
end
|
60
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_bootdisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 21.2.
|
4
|
+
version: 21.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominic Cleal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: theforeman-rubocop
|
@@ -189,7 +189,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
189
|
requirements:
|
190
190
|
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: '2.
|
192
|
+
version: '2.7'
|
193
|
+
- - "<"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '4'
|
193
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
197
|
requirements:
|
195
198
|
- - ">="
|