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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 427ba539a0f0044029faf7ffaca507c4091736f89a14de73559e81515295780a
4
- data.tar.gz: 4f7a1b8fee20f9dd472a06b9dce2f385bc02246de5e592a2923e3156e332ee66
3
+ metadata.gz: 6bd2954e2d65719300eae48b5847be020a4cd3664c4c6178e8158cf6a1a29d91
4
+ data.tar.gz: e053e6f488855af9fc52839149965a128021dac69de2549c62b631746bc64c71
5
5
  SHA512:
6
- metadata.gz: 6e2655e4136af4af6cd76fa3415ce0463ecc3984ed6e89d703e24eedc83f518b59481722fb232d008643f8e78beb4d523f95f80333c6ffac0e120fb49d91fe48
7
- data.tar.gz: d18c12e3f57d69a80bf79ebfaa4e5de88a779c10aa12790ae057446fc3a4940c47f6654aa64edcec8fbfe430b9fa6a54e727476319ac61b11e61e78893b712c6
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
- This template is used to pass command line options to kexec when reloading
10
- kernel on a discovered host instead of rebooting. This is useful in PXE-less
11
- environments. The template must generate JSON format with the following items
12
- "kernel", "initram", "append" and "extra". The kexec command is composed in
13
- the following way:
14
-
15
- kexec --force --debug --append=$append --initrd=$initram $extra $kernel
16
-
17
- Please read kexec(8) man page for more information about semantics.
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
- This template is used to pass command line options to kexec when reloading
20
- kernel on a discovered host instead of rebooting. This is useful in PXE-less
21
- environments. The template must generate JSON format with the following items
22
- "kernel", "initram", "append" and "extra". The kexec command is composed in
23
- the following way:
24
-
25
- kexec --force --debug --append=$append --initrd=$initram $extra $kernel
26
-
27
- Please read kexec(8) man page for more information about semantics.
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
  }
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "19.0.1"
2
+ VERSION = "19.0.4"
3
3
  end
@@ -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.1
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: 2021-11-25 00:00:00.000000000 Z
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.1.4
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/facts/default.json
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/pxeless-vlan.json
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/rhel7-vlan.json
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/functional/api/v2/discovery_rules_controller_test.rb
352
- - test/functional/api/v2/discovered_hosts_controller_test.rb
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/foreman_discovery/concerns/hosts_controller_extensions_test.rb
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/discovered_hosts_controller_test.rb
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