foreman_discovery 19.0.1 → 19.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/setting/discovered.rb +2 -2
- data/app/views/foreman_discovery/debian_kexec.erb +11 -12
- data/app/views/foreman_discovery/redhat_kexec.erb +13 -14
- data/lib/foreman_discovery/version.rb +1 -1
- data/test/unit/managed_extensions_test.rb +1 -1
- metadata +29 -45
- data/locale/ca/foreman_discovery.edit.po +0 -1099
- data/locale/de/foreman_discovery.edit.po +0 -1106
- data/locale/en/foreman_discovery.edit.po +0 -1091
- data/locale/en_GB/foreman_discovery.edit.po +0 -1102
- data/locale/es/foreman_discovery.edit.po +0 -1103
- data/locale/fr/foreman_discovery.edit.po +0 -1099
- data/locale/gl/foreman_discovery.edit.po +0 -1097
- data/locale/it/foreman_discovery.edit.po +0 -1099
- data/locale/ja/foreman_discovery.edit.po +0 -1096
- data/locale/ko/foreman_discovery.edit.po +0 -1096
- data/locale/messages.mo +0 -0
- data/locale/pt_BR/foreman_discovery.edit.po +0 -1105
- data/locale/ru/foreman_discovery.edit.po +0 -1108
- data/locale/sv_SE/foreman_discovery.edit.po +0 -1100
- data/locale/zh_CN/foreman_discovery.edit.po +0 -1094
- data/locale/zh_TW/foreman_discovery.edit.po +0 -1097
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd2954e2d65719300eae48b5847be020a4cd3664c4c6178e8158cf6a1a29d91
|
4
|
+
data.tar.gz: e053e6f488855af9fc52839149965a128021dac69de2549c62b631746bc64c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141f8814847c37d987bb177b3159b9eed90cbd66cf7aad8f7f5b7fc984500ca4bee6079305d1f5f8f605769ec6b15e9872a7315a01a4ba77c39f5d97dd85b8a8
|
7
|
+
data.tar.gz: cb2e36b062bbf8fd05ccb63b1e41eec7e1fecf35f130b97d24e3211c6c07ad1fa35fa8e727e1f23210f49760f3b6d0337ba9249c3fa7e4d864e08f3d3b251d6c
|
@@ -14,8 +14,8 @@ class Setting::Discovered < ::Setting
|
|
14
14
|
|
15
15
|
def self.default_settings
|
16
16
|
[
|
17
|
-
self.set('discovery_location', N_("The default location to place discovered hosts in"), "", N_("Discovery location"), nil, { :collection => Proc.new {Hash[Location.all.map{|loc| [loc[:title], loc[:title]]}]} }),
|
18
|
-
self.set('discovery_organization', N_("The default organization to place discovered hosts in"), "", N_("Discovery organization"), nil, { :collection => Proc.new {Hash[Organization.all.map{|org| [org[:title], org[:title]]}]} }),
|
17
|
+
self.set('discovery_location', N_("The default location to place discovered hosts in"), "", N_("Discovery location"), nil, { :collection => Proc.new {Hash[[['', '']].concat Location.all.map{|loc| [loc[:title], loc[:title]]}]} }),
|
18
|
+
self.set('discovery_organization', N_("The default organization to place discovered hosts in"), "", N_("Discovery organization"), nil, { :collection => Proc.new {Hash[[['', '']].concat Organization.all.map{|org| [org[:title], org[:title]]}]} }),
|
19
19
|
self.set('discovery_fact', N_("Fact name to use for primary interface detection"), "discovery_bootif", N_("Interface fact")),
|
20
20
|
self.set('discovery_auto_bond', N_("Automatic bond interface (if another interface is detected on the same VLAN via LLDP)"), false, N_("Create bond interfaces")),
|
21
21
|
self.set('discovery_clean_facts', N_("Clean all reported facts during provisioning (except discovery facts)"), false, N_("Clean all facts")),
|
@@ -4,18 +4,17 @@ name: Discovery Debian kexec
|
|
4
4
|
oses:
|
5
5
|
- Debian
|
6
6
|
- Ubuntu
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Extra options like --reset-vga can be set via "extra" array.
|
7
|
+
description: |
|
8
|
+
This template is used to pass command line options to kexec when reloading
|
9
|
+
kernel on a discovered host instead of rebooting. This is useful in PXE-less
|
10
|
+
environments. The template must generate JSON format with the following items
|
11
|
+
"kernel", "initram", "append" and "extra". The kexec command is composed in
|
12
|
+
the following way:
|
13
|
+
|
14
|
+
kexec --force --debug --append=$append --initrd=$initram $extra $kernel
|
15
|
+
|
16
|
+
Please read kexec(8) man page for more information about semantics.
|
17
|
+
Extra options like --reset-vga can be set via "extra" array.
|
19
18
|
-%>
|
20
19
|
<%
|
21
20
|
mac = @host.facts['discovery_bootif']
|
@@ -14,18 +14,17 @@ oses:
|
|
14
14
|
- RedHat 5
|
15
15
|
- RedHat 6
|
16
16
|
- RedHat 7
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
Extra options like --reset-vga can be set via "extra" array.
|
17
|
+
description: |
|
18
|
+
This template is used to pass command line options to kexec when reloading
|
19
|
+
kernel on a discovered host instead of rebooting. This is useful in PXE-less
|
20
|
+
environments. The template must generate JSON format with the following items
|
21
|
+
"kernel", "initram", "append" and "extra". The kexec command is composed in
|
22
|
+
the following way:
|
23
|
+
|
24
|
+
kexec --force --debug --append=$append --initrd=$initram $extra $kernel
|
25
|
+
|
26
|
+
Please read kexec(8) man page for more information about semantics.
|
27
|
+
Extra options like --reset-vga can be set via "extra" array.
|
29
28
|
-%>
|
30
29
|
<%
|
31
30
|
mac = @host.facts['discovery_bootif']
|
@@ -47,9 +46,9 @@ Extra options like --reset-vga can be set via "extra" array.
|
|
47
46
|
"initram": "<%= @initrd_uri %>",
|
48
47
|
<% if (@host.operatingsystem.name == 'Fedora' and @host.operatingsystem.major.to_i > 16) or
|
49
48
|
(@host.operatingsystem.name != 'Fedora' and @host.operatingsystem.major.to_i >= 7) -%>
|
50
|
-
"append": "ks=<%= foreman_url('provision') + "&static=yes" %> inst.ks.sendmac <%= "ip=#{ip}::#{gw}:#{mask}:::none nameserver=#{dns} ksdevice=bootif BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
|
49
|
+
"append": "inst.ks=<%= foreman_url('provision') + "&static=yes" %> inst.ks.sendmac <%= "ip=#{ip}::#{gw}:#{mask}:::none nameserver=#{dns} ksdevice=bootif BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
|
51
50
|
<% else -%>
|
52
|
-
"append": "ks=<%= foreman_url('provision') + "&static=yes" %> kssendmac nicdelay=5 <%= "ip=#{ip} netmask=#{mask} gateway=#{gw} dns=#{dns} ksdevice=#{mac} BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
|
51
|
+
"append": "inst.ks=<%= foreman_url('provision') + "&static=yes" %> kssendmac nicdelay=5 <%= "ip=#{ip} netmask=#{mask} gateway=#{gw} dns=#{dns} ksdevice=#{mac} BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
|
53
52
|
<% end -%>
|
54
53
|
"extra": []
|
55
54
|
}
|
@@ -91,7 +91,7 @@ class ManagedExtensionsTest < ActiveSupport::TestCase
|
|
91
91
|
|
92
92
|
test "kexec template is correctly rendered" do
|
93
93
|
expected = {
|
94
|
-
"append" => "ks=http://foreman.some.host.fqdn/unattended/provision&static=yes inst.ks.sendmac ip=::::::none nameserver= ksdevice=bootif BOOTIF= nomodeset nokaslr nomodeset",
|
94
|
+
"append" => "inst.ks=http://foreman.some.host.fqdn/unattended/provision&static=yes inst.ks.sendmac ip=::::::none nameserver= ksdevice=bootif BOOTIF= nomodeset nokaslr nomodeset",
|
95
95
|
"extra" => []
|
96
96
|
}
|
97
97
|
assert @host.operatingsystem.respond_to?(:pxe_type)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_discovery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 19.0.
|
4
|
+
version: 19.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aditi Puntambekar
|
@@ -74,7 +74,7 @@ authors:
|
|
74
74
|
autorequire:
|
75
75
|
bindir: bin
|
76
76
|
cert_chain: []
|
77
|
-
date:
|
77
|
+
date: 2022-05-04 00:00:00.000000000 Z
|
78
78
|
dependencies: []
|
79
79
|
description: MaaS Discovery Plugin engine for Foreman
|
80
80
|
email: gsutclif@redhat.com
|
@@ -201,51 +201,35 @@ files:
|
|
201
201
|
- lib/foreman_discovery/engine.rb
|
202
202
|
- lib/foreman_discovery/version.rb
|
203
203
|
- locale/ca/LC_MESSAGES/foreman_discovery.mo
|
204
|
-
- locale/ca/foreman_discovery.edit.po
|
205
204
|
- locale/ca/foreman_discovery.po
|
206
205
|
- locale/de/LC_MESSAGES/foreman_discovery.mo
|
207
|
-
- locale/de/foreman_discovery.edit.po
|
208
206
|
- locale/de/foreman_discovery.po
|
209
207
|
- locale/en/LC_MESSAGES/foreman_discovery.mo
|
210
|
-
- locale/en/foreman_discovery.edit.po
|
211
208
|
- locale/en/foreman_discovery.po
|
212
209
|
- locale/en_GB/LC_MESSAGES/foreman_discovery.mo
|
213
|
-
- locale/en_GB/foreman_discovery.edit.po
|
214
210
|
- locale/en_GB/foreman_discovery.po
|
215
211
|
- locale/es/LC_MESSAGES/foreman_discovery.mo
|
216
|
-
- locale/es/foreman_discovery.edit.po
|
217
212
|
- locale/es/foreman_discovery.po
|
218
213
|
- locale/foreman_discovery.pot
|
219
214
|
- locale/fr/LC_MESSAGES/foreman_discovery.mo
|
220
|
-
- locale/fr/foreman_discovery.edit.po
|
221
215
|
- locale/fr/foreman_discovery.po
|
222
216
|
- locale/gl/LC_MESSAGES/foreman_discovery.mo
|
223
|
-
- locale/gl/foreman_discovery.edit.po
|
224
217
|
- locale/gl/foreman_discovery.po
|
225
218
|
- locale/it/LC_MESSAGES/foreman_discovery.mo
|
226
|
-
- locale/it/foreman_discovery.edit.po
|
227
219
|
- locale/it/foreman_discovery.po
|
228
220
|
- locale/ja/LC_MESSAGES/foreman_discovery.mo
|
229
|
-
- locale/ja/foreman_discovery.edit.po
|
230
221
|
- locale/ja/foreman_discovery.po
|
231
222
|
- locale/ko/LC_MESSAGES/foreman_discovery.mo
|
232
|
-
- locale/ko/foreman_discovery.edit.po
|
233
223
|
- locale/ko/foreman_discovery.po
|
234
|
-
- locale/messages.mo
|
235
224
|
- locale/pt_BR/LC_MESSAGES/foreman_discovery.mo
|
236
|
-
- locale/pt_BR/foreman_discovery.edit.po
|
237
225
|
- locale/pt_BR/foreman_discovery.po
|
238
226
|
- locale/ru/LC_MESSAGES/foreman_discovery.mo
|
239
|
-
- locale/ru/foreman_discovery.edit.po
|
240
227
|
- locale/ru/foreman_discovery.po
|
241
228
|
- locale/sv_SE/LC_MESSAGES/foreman_discovery.mo
|
242
|
-
- locale/sv_SE/foreman_discovery.edit.po
|
243
229
|
- locale/sv_SE/foreman_discovery.po
|
244
230
|
- locale/zh_CN/LC_MESSAGES/foreman_discovery.mo
|
245
|
-
- locale/zh_CN/foreman_discovery.edit.po
|
246
231
|
- locale/zh_CN/foreman_discovery.po
|
247
232
|
- locale/zh_TW/LC_MESSAGES/foreman_discovery.mo
|
248
|
-
- locale/zh_TW/foreman_discovery.edit.po
|
249
233
|
- locale/zh_TW/foreman_discovery.po
|
250
234
|
- package.json
|
251
235
|
- test/factories/discovery_host_related.rb
|
@@ -325,47 +309,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
309
|
- !ruby/object:Gem::Version
|
326
310
|
version: '0'
|
327
311
|
requirements: []
|
328
|
-
rubygems_version: 3.
|
312
|
+
rubygems_version: 3.0.3
|
329
313
|
signing_key:
|
330
314
|
specification_version: 4
|
331
315
|
summary: MaaS Discovery Plugin for Foreman
|
332
316
|
test_files:
|
333
317
|
- test/factories/discovery_host_related.rb
|
334
318
|
- test/factories/discovery_rule_related.rb
|
335
|
-
- test/
|
319
|
+
- test/test_plugin_helper.rb
|
320
|
+
- test/unit/fact_to_category_resolver_test.rb
|
321
|
+
- test/unit/discovery_taxonomy_extensions_test.rb
|
322
|
+
- test/unit/discovered_extensions_test.rb
|
323
|
+
- test/unit/discovery_attribute_set_test.rb
|
324
|
+
- test/unit/discovered_mailer_test.rb
|
325
|
+
- test/unit/fact_parser_test.rb
|
326
|
+
- test/unit/lldp_neighbors_test.rb
|
327
|
+
- test/unit/host_discovered_test.rb
|
328
|
+
- test/unit/managed_extensions_test.rb
|
329
|
+
- test/unit/ui_notifications/destroy_host_test.rb
|
330
|
+
- test/unit/ui_notifications/new_host_test.rb
|
331
|
+
- test/unit/discovery_rule_test.rb
|
332
|
+
- test/test_helper_discovery.rb
|
336
333
|
- test/facts/dell_npars.json
|
337
334
|
- test/facts/dell_vlan.json
|
338
335
|
- test/facts/facts_with_lldp.json
|
339
|
-
- test/facts/
|
340
|
-
- test/facts/regular_host.json
|
336
|
+
- test/facts/default.json
|
341
337
|
- test/facts/rhel-dl380-1kdisks.json
|
342
338
|
- test/facts/rhel-r730.json
|
343
|
-
- test/facts/
|
344
|
-
- test/facts/simple-bond.json
|
345
|
-
- test/facts/suse-vmware.json
|
339
|
+
- test/facts/only-ipv6.json
|
346
340
|
- test/facts/vmware_local.json
|
341
|
+
- test/facts/regular_host.json
|
342
|
+
- test/facts/rhel7-vlan.json
|
347
343
|
- test/facts/bond0-eth0-eth1-active-passive.json
|
348
|
-
- test/facts/facts_with_lldp_bond_candidate.json
|
349
|
-
- test/facts/only-ipv6.json
|
350
344
|
- test/facts/skylake-ipv6.json
|
351
|
-
- test/
|
352
|
-
- test/
|
345
|
+
- test/facts/pxeless-vlan.json
|
346
|
+
- test/facts/suse-vmware.json
|
347
|
+
- test/facts/facts_with_lldp_bond_candidate.json
|
348
|
+
- test/facts/simple-bond.json
|
349
|
+
- test/functional/discovered_hosts_controller_test.rb
|
353
350
|
- test/functional/api/v2/fact_value_extensions_test.rb
|
354
|
-
- test/functional/
|
351
|
+
- test/functional/api/v2/discovered_hosts_controller_test.rb
|
352
|
+
- test/functional/api/v2/discovery_rules_controller_test.rb
|
355
353
|
- test/functional/discovery_rules_controller_test.rb
|
356
|
-
- test/functional/
|
354
|
+
- test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
|
357
355
|
- test/integration/discovered_hosts_test.rb
|
358
|
-
- test/unit/ui_notifications/destroy_host_test.rb
|
359
|
-
- test/unit/ui_notifications/new_host_test.rb
|
360
|
-
- test/unit/discovered_mailer_test.rb
|
361
|
-
- test/unit/discovery_taxonomy_extensions_test.rb
|
362
|
-
- test/unit/lldp_neighbors_test.rb
|
363
|
-
- test/unit/discovery_rule_test.rb
|
364
|
-
- test/unit/fact_to_category_resolver_test.rb
|
365
|
-
- test/unit/managed_extensions_test.rb
|
366
|
-
- test/unit/host_discovered_test.rb
|
367
|
-
- test/unit/discovered_extensions_test.rb
|
368
|
-
- test/unit/discovery_attribute_set_test.rb
|
369
|
-
- test/unit/fact_parser_test.rb
|
370
|
-
- test/test_helper_discovery.rb
|
371
|
-
- test/test_plugin_helper.rb
|